docs: Move the GMemory*Stream SECTIONs

Move them to the struct docs.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>

Helps: #3037
This commit is contained in:
Philip Withnall 2023-10-24 10:53:24 +01:00
parent 22275f389b
commit ffff217a9d
4 changed files with 8 additions and 24 deletions

View File

@ -32,16 +32,13 @@
/** /**
* SECTION:gmemoryinputstream * GMemoryInputStream:
* @short_description: Streaming input operations on memory chunks
* @include: gio/gio.h
* @see_also: #GMemoryOutputStream
* *
* #GMemoryInputStream is a class for using arbitrary * `GMemoryInputStream` is a class for using arbitrary
* memory chunks as input for GIO streaming input operations. * memory chunks as input for GIO streaming input operations.
* *
* As of GLib 2.34, #GMemoryInputStream implements * As of GLib 2.34, `GMemoryInputStream` implements
* #GPollableInputStream. * [iface@Gio.PollableInputStream].
*/ */
struct _GMemoryInputStreamPrivate { struct _GMemoryInputStreamPrivate {

View File

@ -38,11 +38,6 @@ G_BEGIN_DECLS
#define G_IS_MEMORY_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MEMORY_INPUT_STREAM)) #define G_IS_MEMORY_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MEMORY_INPUT_STREAM))
#define G_MEMORY_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MEMORY_INPUT_STREAM, GMemoryInputStreamClass)) #define G_MEMORY_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MEMORY_INPUT_STREAM, GMemoryInputStreamClass))
/**
* GMemoryInputStream:
*
* Implements #GInputStream for arbitrary memory chunks.
**/
typedef struct _GMemoryInputStreamClass GMemoryInputStreamClass; typedef struct _GMemoryInputStreamClass GMemoryInputStreamClass;
typedef struct _GMemoryInputStreamPrivate GMemoryInputStreamPrivate; typedef struct _GMemoryInputStreamPrivate GMemoryInputStreamPrivate;

View File

@ -35,16 +35,13 @@
/** /**
* SECTION:gmemoryoutputstream * GMemoryOutputStream:
* @short_description: Streaming output operations on memory chunks
* @include: gio/gio.h
* @see_also: #GMemoryInputStream
* *
* #GMemoryOutputStream is a class for using arbitrary * `GMemoryOutputStream` is a class for using arbitrary
* memory chunks as output for GIO streaming output operations. * memory chunks as output for GIO streaming output operations.
* *
* As of GLib 2.34, #GMemoryOutputStream trivially implements * As of GLib 2.34, `GMemoryOutputStream` trivially implements
* #GPollableOutputStream: it always polls as ready. * [iface@Gio.PollableOutputStream]: it always polls as ready.
*/ */
#define MIN_ARRAY_SIZE 16 #define MIN_ARRAY_SIZE 16

View File

@ -38,11 +38,6 @@ G_BEGIN_DECLS
#define G_IS_MEMORY_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MEMORY_OUTPUT_STREAM)) #define G_IS_MEMORY_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MEMORY_OUTPUT_STREAM))
#define G_MEMORY_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MEMORY_OUTPUT_STREAM, GMemoryOutputStreamClass)) #define G_MEMORY_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MEMORY_OUTPUT_STREAM, GMemoryOutputStreamClass))
/**
* GMemoryOutputStream:
*
* Implements #GOutputStream for arbitrary memory chunks.
**/
typedef struct _GMemoryOutputStreamClass GMemoryOutputStreamClass; typedef struct _GMemoryOutputStreamClass GMemoryOutputStreamClass;
typedef struct _GMemoryOutputStreamPrivate GMemoryOutputStreamPrivate; typedef struct _GMemoryOutputStreamPrivate GMemoryOutputStreamPrivate;