about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-02-02 20:33:54 +0000
committerJames Booth <boothj5@gmail.com>2013-02-02 20:33:54 +0000
commit8cc4b559452f0bb279a1330d0a166c65045e3417 (patch)
tree2d7b05c098cadab6a21f1e7f2d40b96bd005033c /src/xmpp
parentccf71715ef92d94757c7dcefff705e9fe335fec3 (diff)
downloadprofani-tty-8cc4b559452f0bb279a1330d0a166c65045e3417.tar.gz
Removed caps functions from xmpp.h
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/capabilities.h35
-rw-r--r--src/xmpp/iq.c1
-rw-r--r--src/xmpp/presence.c1
-rw-r--r--src/xmpp/xmpp.h4
4 files changed, 37 insertions, 4 deletions
diff --git a/src/xmpp/capabilities.h b/src/xmpp/capabilities.h
new file mode 100644
index 00000000..10c59927
--- /dev/null
+++ b/src/xmpp/capabilities.h
@@ -0,0 +1,35 @@
+/*
+ * capabilities.h
+ *
+ * Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com>
+ *
+ * This file is part of Profanity.
+ *
+ * Profanity is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Profanity is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Profanity.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef CAPABILITIES_H
+#define CAPABILITIES_H
+
+#include <strophe.h>
+
+#include "xmpp.h"
+
+void caps_add(const char * const caps_str, const char * const client);
+gboolean caps_contains(const char * const caps_str);
+char* caps_create_sha1_str(xmpp_stanza_t * const query);
+xmpp_stanza_t* caps_create_query_response_stanza(xmpp_ctx_t * const ctx);
+
+#endif
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index e63ca01a..72f7c39f 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -32,6 +32,7 @@
 #include "xmpp.h"
 #include "stanza.h"
 #include "iq.h"
+#include "capabilities.h"
 
 #define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_IQ, type, ctx)
 
diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c
index 2046845f..b679317e 100644
--- a/src/xmpp/presence.c
+++ b/src/xmpp/presence.c
@@ -32,6 +32,7 @@
 #include "profanity.h"
 #include "xmpp.h"
 #include "stanza.h"
+#include "capabilities.h"
 
 static GHashTable *sub_requests;
 
diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h
index 428908cf..ab22d191 100644
--- a/src/xmpp/xmpp.h
+++ b/src/xmpp/xmpp.h
@@ -92,11 +92,7 @@ void presence_update(jabber_presence_t status, const char * const msg,
 
 // caps functions
 void caps_init(void);
-void caps_add(const char * const caps_str, const char * const client);
-gboolean caps_contains(const char * const caps_str);
 Capabilities* caps_get(const char * const caps_str);
-char* caps_create_sha1_str(xmpp_stanza_t * const query);
-xmpp_stanza_t* caps_create_query_response_stanza(xmpp_ctx_t * const ctx);
 void caps_close(void);
 
 #endif