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:22:39 +0000
committerJames Booth <boothj5@gmail.com>2013-02-02 20:22:39 +0000
commit5e3d414ee06f19fc623097393976f3a672008267 (patch)
tree3899ea0ac2047c4ce44deee6e4d75dd9c5811eda /src/xmpp
parent59b79ec20c1b8e858e5c9be455f61b5be336ad88 (diff)
downloadprofani-tty-5e3d414ee06f19fc623097393976f3a672008267.tar.gz
Removed iq functions from xmpp.h
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/connection.c1
-rw-r--r--src/xmpp/iq.c1
-rw-r--r--src/xmpp/iq.h29
-rw-r--r--src/xmpp/xmpp.h4
4 files changed, 31 insertions, 4 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 7f13f288..aa0705e1 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -37,6 +37,7 @@
 #include "xmpp.h"
 #include "stanza.h"
 #include "message.h"
+#include "iq.h"
 
 static struct _jabber_conn_t {
     xmpp_log_t *log;
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 3618b24d..e63ca01a 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -31,6 +31,7 @@
 #include "log.h"
 #include "xmpp.h"
 #include "stanza.h"
+#include "iq.h"
 
 #define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_IQ, type, ctx)
 
diff --git a/src/xmpp/iq.h b/src/xmpp/iq.h
new file mode 100644
index 00000000..86966e26
--- /dev/null
+++ b/src/xmpp/iq.h
@@ -0,0 +1,29 @@
+/*
+ * iq.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 IQ_H
+#define IQ_H
+
+void iq_add_handlers(void);
+void iq_roster_request(void);
+
+#endif
diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h
index 661f0c80..ca2e2a48 100644
--- a/src/xmpp/xmpp.h
+++ b/src/xmpp/xmpp.h
@@ -81,10 +81,6 @@ void message_send_composing(const char * const recipient);
 void message_send_paused(const char * const recipient);
 void message_send_gone(const char * const recipient);
 
-// iq functions
-void iq_add_handlers(void);
-void iq_roster_request(void);
-
 // presence functions
 void presence_add_handlers(void);
 void presence_init(void);