summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-05-15 12:14:39 (GMT)
committerAlexander Larsson <alexl@redhat.com>2009-05-15 12:14:39 (GMT)
commit2c13951c1312f11471956868a1bb56ee3f235d58 (patch)
treefe152dd84a4c6d4408517ea8be330ac8106475ea
parent1fbf0cc97fbca474b074aa72ca2943c8f32eab8c (diff)
downloadgnio-2c13951c1312f11471956868a1bb56ee3f235d58.tar.gz
gnio-2c13951c1312f11471956868a1bb56ee3f235d58.tar.xz
Add class padding and G_GNUC_CONST for get_type calls
-rw-r--r--gio/gsocketconnection.h10
-rw-r--r--gio/gsocketinputstream.h2
-rw-r--r--gio/gsocketoutputstream.h2
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