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:27:46 +0000
committerJames Booth <boothj5@gmail.com>2013-02-02 20:27:46 +0000
commitccf71715ef92d94757c7dcefff705e9fe335fec3 (patch)
treea8f2fe4c511260736eaae85ac92f7edfacfd44ed /src/xmpp
parent5e3d414ee06f19fc623097393976f3a672008267 (diff)
downloadprofani-tty-ccf71715ef92d94757c7dcefff705e9fe335fec3.tar.gz
Removed presence functions from xmpp.h
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/connection.c1
-rw-r--r--src/xmpp/presence.h30
-rw-r--r--src/xmpp/xmpp.h3
3 files changed, 31 insertions, 3 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index aa0705e1..9d6f6822 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -38,6 +38,7 @@
 #include "stanza.h"
 #include "message.h"
 #include "iq.h"
+#include "presence.h"
 
 static struct _jabber_conn_t {
     xmpp_log_t *log;
diff --git a/src/xmpp/presence.h b/src/xmpp/presence.h
new file mode 100644
index 00000000..e3ede7f1
--- /dev/null
+++ b/src/xmpp/presence.h
@@ -0,0 +1,30 @@
+/*
+ * presence.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 PRESENCE_H
+#define PRESENCE_H
+
+void presence_add_handlers(void);
+void presence_init(void);
+void presence_free_sub_requests(void);
+
+#endif
diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h
index ca2e2a48..428908cf 100644
--- a/src/xmpp/xmpp.h
+++ b/src/xmpp/xmpp.h
@@ -82,11 +82,8 @@ void message_send_paused(const char * const recipient);
 void message_send_gone(const char * const recipient);
 
 // presence functions
-void presence_add_handlers(void);
-void presence_init(void);
 void presence_subscription(const char * const jid, const jabber_subscr_t action);
 GList* presence_get_subscription_requests(void);
-void presence_free_sub_requests(void);
 void presence_join_room(Jid *jid);
 void presence_change_room_nick(const char * const room, const char * const nick);
 void presence_leave_chat_room(const char * const room_jid);