mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Declare stream base classes as abstract
This commit is contained in:
parent
547311bfd8
commit
4bc4590c7b
@ -69,7 +69,7 @@ static gboolean g_filter_input_stream_close (GInputStream *stream
|
|||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
G_DEFINE_TYPE (GFilterInputStream, g_filter_input_stream, G_TYPE_INPUT_STREAM)
|
G_DEFINE_ABSTRACT_TYPE (GFilterInputStream, g_filter_input_stream, G_TYPE_INPUT_STREAM)
|
||||||
|
|
||||||
#define GET_PRIVATE(inst) G_TYPE_INSTANCE_GET_PRIVATE (inst, \
|
#define GET_PRIVATE(inst) G_TYPE_INSTANCE_GET_PRIVATE (inst, \
|
||||||
G_TYPE_FILTER_INPUT_STREAM, GFilterInputStreamPrivate)
|
G_TYPE_FILTER_INPUT_STREAM, GFilterInputStreamPrivate)
|
||||||
|
@ -68,7 +68,7 @@ static gboolean g_filter_output_stream_close (GOutputStream *stream,
|
|||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
G_DEFINE_TYPE (GFilterOutputStream, g_filter_output_stream, G_TYPE_OUTPUT_STREAM)
|
G_DEFINE_ABSTRACT_TYPE (GFilterOutputStream, g_filter_output_stream, G_TYPE_OUTPUT_STREAM)
|
||||||
|
|
||||||
#define GET_PRIVATE(inst) G_TYPE_INSTANCE_GET_PRIVATE (inst, \
|
#define GET_PRIVATE(inst) G_TYPE_INSTANCE_GET_PRIVATE (inst, \
|
||||||
G_TYPE_FILTER_OUTPUT_STREAM, GFilterOutputStreamPrivate)
|
G_TYPE_FILTER_OUTPUT_STREAM, GFilterOutputStreamPrivate)
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
* All of these functions have async variants too.
|
* All of these functions have async variants too.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
G_DEFINE_TYPE (GInputStream, g_input_stream, G_TYPE_OBJECT);
|
G_DEFINE_ABSTRACT_TYPE (GInputStream, g_input_stream, G_TYPE_OBJECT);
|
||||||
|
|
||||||
struct _GInputStreamPrivate {
|
struct _GInputStreamPrivate {
|
||||||
guint closed : 1;
|
guint closed : 1;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include <gio/gasyncresult.h>
|
#include <gio/gasyncresult.h>
|
||||||
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (GIOStream, g_io_stream, G_TYPE_OBJECT);
|
G_DEFINE_ABSTRACT_TYPE (GIOStream, g_io_stream, G_TYPE_OBJECT);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SECTION:giostream
|
* SECTION:giostream
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
* All of these functions have async variants too.
|
* All of these functions have async variants too.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
G_DEFINE_TYPE (GOutputStream, g_output_stream, G_TYPE_OBJECT);
|
G_DEFINE_ABSTRACT_TYPE (GOutputStream, g_output_stream, G_TYPE_OBJECT);
|
||||||
|
|
||||||
struct _GOutputStreamPrivate {
|
struct _GOutputStreamPrivate {
|
||||||
guint closed : 1;
|
guint closed : 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user