mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed iq functions from xmpp.h
This commit is contained in:
parent
59b79ec20c
commit
5e3d414ee0
@ -9,7 +9,7 @@ profanity_SOURCES = src/command.c src/contact.c src/command_history.c \
|
|||||||
src/accounts.c src/accounts.h src/jid.h src/jid.c \
|
src/accounts.c src/accounts.h src/jid.h src/jid.c \
|
||||||
src/xmpp/xmpp.h src/xmpp/capabilities.c src/xmpp/connection.c \
|
src/xmpp/xmpp.h src/xmpp/capabilities.c src/xmpp/connection.c \
|
||||||
src/xmpp/iq.c src/xmpp/message.c src/xmpp/presence.c src/xmpp/stanza.c \
|
src/xmpp/iq.c src/xmpp/message.c src/xmpp/presence.c src/xmpp/stanza.c \
|
||||||
src/xmpp/stanza.h src/xmpp/message.h \
|
src/xmpp/stanza.h src/xmpp/message.h src/xmpp/iq.h \
|
||||||
src/ui/ui.h src/ui/window.c src/ui/window.h src/ui/windows.c \
|
src/ui/ui.h src/ui/window.c src/ui/window.h src/ui/windows.c \
|
||||||
src/ui/titlebar.c src/ui/statusbar.c src/ui/inputwin.c
|
src/ui/titlebar.c src/ui/statusbar.c src/ui/inputwin.c
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#include "xmpp.h"
|
#include "xmpp.h"
|
||||||
#include "stanza.h"
|
#include "stanza.h"
|
||||||
#include "message.h"
|
#include "message.h"
|
||||||
|
#include "iq.h"
|
||||||
|
|
||||||
static struct _jabber_conn_t {
|
static struct _jabber_conn_t {
|
||||||
xmpp_log_t *log;
|
xmpp_log_t *log;
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "xmpp.h"
|
#include "xmpp.h"
|
||||||
#include "stanza.h"
|
#include "stanza.h"
|
||||||
|
#include "iq.h"
|
||||||
|
|
||||||
#define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_IQ, type, ctx)
|
#define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_IQ, type, ctx)
|
||||||
|
|
||||||
|
29
src/xmpp/iq.h
Normal file
29
src/xmpp/iq.h
Normal file
@ -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
|
@ -81,10 +81,6 @@ void message_send_composing(const char * const recipient);
|
|||||||
void message_send_paused(const char * const recipient);
|
void message_send_paused(const char * const recipient);
|
||||||
void message_send_gone(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
|
// presence functions
|
||||||
void presence_add_handlers(void);
|
void presence_add_handlers(void);
|
||||||
void presence_init(void);
|
void presence_init(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user