[glib] Declare stream base classes as abstract



commit 4bc4590c7bb5d8e7c248347e4b702ab8b506d937
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 16 10:21:38 2010 -0400

    Declare stream base classes as abstract

 gio/gfilterinputstream.c  |    2 +-
 gio/gfilteroutputstream.c |    2 +-
 gio/ginputstream.c        |    2 +-
 gio/giostream.c           |    2 +-
 gio/goutputstream.c       |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gio/gfilterinputstream.c b/gio/gfilterinputstream.c
index 2a3b8cb..ec8472c 100644
--- a/gio/gfilterinputstream.c
+++ b/gio/gfilterinputstream.c
@@ -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)
diff --git a/gio/gfilteroutputstream.c b/gio/gfilteroutputstream.c
index 9460f60..7755b9e 100644
--- a/gio/gfilteroutputstream.c
+++ b/gio/gfilteroutputstream.c
@@ -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)
diff --git a/gio/ginputstream.c b/gio/ginputstream.c
index fccd7de..a66e9cf 100644
--- a/gio/ginputstream.c
+++ b/gio/ginputstream.c
@@ -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;
diff --git a/gio/giostream.c b/gio/giostream.c
index 9d824ed..38b4148 100644
--- a/gio/giostream.c
+++ b/gio/giostream.c
@@ -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
diff --git a/gio/goutputstream.c b/gio/goutputstream.c
index 4881873..1115599 100644
--- a/gio/goutputstream.c
+++ b/gio/goutputstream.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]