Lines Matching defs:class
36 * @short_description: Base class for implementing streaming output
190 GOutputStreamClass *class;
206 class = G_OUTPUT_STREAM_GET_CLASS (stream);
208 if (class->write_fn == NULL)
221 res = class->write_fn (stream, buffer, count, cancellable, error);
316 GOutputStreamClass *class;
324 class = G_OUTPUT_STREAM_GET_CLASS (stream);
327 if (class->flush)
332 res = class->flush (stream, cancellable, error);
363 GOutputStreamClass *class;
379 class = G_OUTPUT_STREAM_GET_CLASS (stream);
385 res = class->splice (stream, source, flags, cancellable, error);
402 GOutputStreamClass *class = G_OUTPUT_STREAM_GET_CLASS (stream);
409 if (class->write_fn == NULL)
433 n_written = class->write_fn (stream, p, n_read, cancellable, error);
460 if (!class->close_fn (stream, cancellable, error))
514 GOutputStreamClass *class;
519 class = G_OUTPUT_STREAM_GET_CLASS (stream);
530 if (class->flush)
531 res = class->flush (stream, cancellable, error);
540 if (class->close_fn)
541 class->close_fn (stream, cancellable, NULL);
546 if (class->close_fn)
547 res = class->close_fn (stream, cancellable, error);
632 GOutputStreamClass *class;
671 class = G_OUTPUT_STREAM_GET_CLASS (stream);
675 class->write_async (stream, buffer, count, io_priority, cancellable,
696 GOutputStreamClass *class;
712 class = G_OUTPUT_STREAM_GET_CLASS (stream);
713 return class->write_finish (stream, result, error);
767 GOutputStreamClass *class;
794 class = G_OUTPUT_STREAM_GET_CLASS (stream);
802 class->splice_async (stream, source, flags, io_priority, cancellable,
823 GOutputStreamClass *class;
835 class = G_OUTPUT_STREAM_GET_CLASS (stream);
836 return class->splice_finish (stream, result, error);
861 GOutputStreamClass *class;
880 class = G_OUTPUT_STREAM_GET_CLASS (stream);
882 if (class->flush_async == NULL)
893 class->flush_async (stream, io_priority, cancellable,
961 GOutputStreamClass *class;
988 class = G_OUTPUT_STREAM_GET_CLASS (stream);
991 class->close_async (stream, io_priority, cancellable,
1012 GOutputStreamClass *class;
1028 class = G_OUTPUT_STREAM_GET_CLASS (stream);
1029 return class->close_finish (stream, result, error);
1134 GOutputStreamClass *class;
1137 class = G_OUTPUT_STREAM_GET_CLASS (object);
1139 op->count_written = class->write_fn (G_OUTPUT_STREAM (object), op->buffer, op->count_requested,
1195 GOutputStreamClass *class;
1200 class = G_OUTPUT_STREAM_GET_CLASS (object);
1203 op->bytes_copied = class->splice (stream,
1259 GOutputStreamClass *class;
1263 class = G_OUTPUT_STREAM_GET_CLASS (object);
1265 if (class->flush)
1266 result = class->flush (G_OUTPUT_STREAM (object), cancellable, &error);
1303 GOutputStreamClass *class;
1312 class = G_OUTPUT_STREAM_GET_CLASS (object);
1313 result = class->close_fn (G_OUTPUT_STREAM (object), cancellable, &error);