GAsyncResult *result,
GError **error);
+static gboolean g_unix_output_stream_pollable_can_poll (GPollableOutputStream *stream);
static gboolean g_unix_output_stream_pollable_is_writable (GPollableOutputStream *stream);
static GSource *g_unix_output_stream_pollable_create_source (GPollableOutputStream *stream,
GCancellable *cancellable);
static void
g_unix_output_stream_pollable_iface_init (GPollableOutputStreamInterface *iface)
{
+ iface->can_poll = g_unix_output_stream_pollable_can_poll;
iface->is_writable = g_unix_output_stream_pollable_is_writable;
iface->create_source = g_unix_output_stream_pollable_create_source;
}
}
static gboolean
+g_unix_output_stream_pollable_can_poll (GPollableOutputStream *stream)
+{
+ return G_UNIX_OUTPUT_STREAM (stream)->priv->is_pipe_or_socket;
+}
+
+static gboolean
g_unix_output_stream_pollable_is_writable (GPollableOutputStream *stream)
{
GUnixOutputStream *unix_stream = G_UNIX_OUTPUT_STREAM (stream);