Commit 4bc4590c authored by Matthias Clasen's avatar Matthias Clasen

Declare stream base classes as abstract

parent 547311bf
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment