[gnio] Add class padding and G_GNUC_CONST for get_type calls



commit 2c13951c1312f11471956868a1bb56ee3f235d58
Author: Alexander Larsson <alexl redhat com>
Date:   Fri May 15 14:14:39 2009 +0200

    Add class padding and G_GNUC_CONST for get_type calls
---
 gio/gsocketconnection.h   |   10 +++++++++-
 gio/gsocketinputstream.h  |    2 +-
 gio/gsocketoutputstream.h |    2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/gio/gsocketconnection.h b/gio/gsocketconnection.h
index 4dc0fd5..c44e1d7 100644
--- a/gio/gsocketconnection.h
+++ b/gio/gsocketconnection.h
@@ -62,6 +62,14 @@ typedef struct _GSocketConnectionClass                      GSocketConnectionCla
 struct _GSocketConnectionClass
 {
   GIOStreamClass parent_class;
+
+  /* Padding for future expansion */
+  void (*_g_reserved1) (void);
+  void (*_g_reserved2) (void);
+  void (*_g_reserved3) (void);
+  void (*_g_reserved4) (void);
+  void (*_g_reserved5) (void);
+  void (*_g_reserved6) (void);
 };
 
 struct _GSocketConnection
@@ -70,7 +78,7 @@ struct _GSocketConnection
   GSocketConnectionPrivate *priv;
 };
 
-GType              g_socket_connection_get_type                  (void);
+GType              g_socket_connection_get_type                  (void) G_GNUC_CONST;
 
 GSocket           *g_socket_connection_get_socket                (GSocketConnection *connection);
 GSocketAddress    *g_socket_connection_get_local_address         (GSocketConnection *connection,
diff --git a/gio/gsocketinputstream.h b/gio/gsocketinputstream.h
index 0500b4e..e6a1695 100644
--- a/gio/gsocketinputstream.h
+++ b/gio/gsocketinputstream.h
@@ -50,7 +50,7 @@ struct _GSocketInputStream
   GSocketInputStreamPrivate *priv;
 };
 
-GType                   g_socket_input_stream_get_type                  (void);
+GType                   g_socket_input_stream_get_type                  (void) G_GNUC_CONST;
 GSocketInputStream *    _g_socket_input_stream_new                      (GSocket *socket);
 
 G_END_DECLS
diff --git a/gio/gsocketoutputstream.h b/gio/gsocketoutputstream.h
index 37f99b3..8a933e4 100644
--- a/gio/gsocketoutputstream.h
+++ b/gio/gsocketoutputstream.h
@@ -50,7 +50,7 @@ struct _GSocketOutputStream
   GSocketOutputStreamPrivate *priv;
 };
 
-GType                   g_socket_output_stream_get_type                 (void);
+GType                   g_socket_output_stream_get_type                 (void) G_GNUC_CONST;
 GSocketOutputStream *   _g_socket_output_stream_new                     (GSocket *socket);
 
 G_END_DECLS



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