mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +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,
|
||||
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, \
|
||||
G_TYPE_FILTER_INPUT_STREAM, GFilterInputStreamPrivate)
|
||||
|
@ -68,7 +68,7 @@ static gboolean g_filter_output_stream_close (GOutputStream *stream,
|
||||
GCancellable *cancellable,
|
||||
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, \
|
||||
G_TYPE_FILTER_OUTPUT_STREAM, GFilterOutputStreamPrivate)
|
||||
|
@ -47,7 +47,7 @@
|
||||
* 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 {
|
||||
guint closed : 1;
|
||||
|
@ -31,7 +31,7 @@
|
||||
#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
|
||||
|
@ -45,7 +45,7 @@
|
||||
* 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 {
|
||||
guint closed : 1;
|
||||
|
Loading…
Reference in New Issue
Block a user