[telepathy-gabble/master] no need to define GabblePubsubEventHandler in pubsub.h

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 25 02:29:52 PDT 2009


---
 src/pubsub.c |    6 ++++++
 src/pubsub.h |    8 --------
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/pubsub.c b/src/pubsub.c
index 5adb40d..4d50b62 100644
--- a/src/pubsub.c
+++ b/src/pubsub.c
@@ -31,6 +31,12 @@
 #include "conn-olpc.h"
 #include "conn-location.h"
 
+typedef struct
+{
+    const gchar *ns;
+    GabblePubsubEventHandlerFunction handle_function;
+} GabblePubsubEventHandler;
+
 static const GabblePubsubEventHandler pubsub_event_handlers[] =
 {
     { NS_NICK, gabble_conn_aliasing_pep_nick_event_handler },
diff --git a/src/pubsub.h b/src/pubsub.h
index ef7af1a..1edc576 100644
--- a/src/pubsub.h
+++ b/src/pubsub.h
@@ -28,14 +28,6 @@ typedef gboolean (* GabblePubsubEventHandlerFunction) (GabbleConnection *conn,
                                                        LmMessage *msg,
                                                        TpHandle handle);
 
-typedef struct _GabblePubsubEventHandler GabblePubsubEventHandler;
-
-struct _GabblePubsubEventHandler
-{
-    const gchar *ns;
-    GabblePubsubEventHandlerFunction handle_function;
-};
-
 gboolean
 gabble_pubsub_event_handler (GabbleConnection *conn, LmMessage *msg,
     TpHandle handle);
-- 
1.5.6.5




More information about the telepathy-commits mailing list