[gnio/connection-factory: 2/6] Register GUnixConnection with connection factory
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnio/connection-factory: 2/6] Register GUnixConnection with connection factory
- Date: Fri, 8 May 2009 10:25:43 -0400 (EDT)
commit 30a51e1cc6687d9e3bcc965e702ba87d11c4bf92
Author: Alexander Larsson <alexl redhat com>
Date: Fri May 8 14:38:12 2009 +0200
Register GUnixConnection with connection factory
---
gio/gunixconnection.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gio/gunixconnection.c b/gio/gunixconnection.c
index d4194da..02c0747 100644
--- a/gio/gunixconnection.c
+++ b/gio/gunixconnection.c
@@ -18,9 +18,13 @@
#include <gio/gsocket.h>
#include <unistd.h>
-G_DEFINE_TYPE (GUnixConnection,
- g_unix_connection,
- G_TYPE_SOCKET_CONNECTION);
+G_DEFINE_TYPE_WITH_CODE (GUnixConnection, g_unix_connection,
+ G_TYPE_SOCKET_CONNECTION,
+ g_socket_connection_factory_register_type (g_define_type_id,
+ G_SOCKET_FAMILY_UNIX,
+ G_SOCKET_TYPE_STREAM,
+ NULL);
+ );
gboolean
g_unix_connection_send_fd (GUnixConnection *connection,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]