Allow extensions to be registered
[cascardo/chat.git] / xmpp.c
diff --git a/xmpp.c b/xmpp.c
index dc59c17..e5eed9d 100644 (file)
--- a/xmpp.c
+++ b/xmpp.c
@@ -154,3 +154,9 @@ hc_xmpp_status (hc_xmpp_t *xmpp)
 {
   return xmpp->status;
 }
+
+void
+hc_xmpp_register_ns_hook (hc_xmpp_t *xmpp, char *ns, hc_xmpp_hook_t hook)
+{
+  g_hash_table_insert (xmpp->nshooks, ns, hook);
+}