1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Removed caps functions from xmpp.h

This commit is contained in:
James Booth 2013-02-02 20:33:54 +00:00
parent ccf71715ef
commit 8cc4b55945
5 changed files with 38 additions and 4 deletions

View File

@ -10,6 +10,7 @@ profanity_SOURCES = src/command.c src/contact.c src/command_history.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/stanza.h src/xmpp/message.h src/xmpp/iq.h src/xmpp/presence.h \
src/xmpp/capabilities.h \
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

35
src/xmpp/capabilities.h Normal file
View File

@ -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

View File

@ -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)

View File

@ -32,6 +32,7 @@
#include "profanity.h"
#include "xmpp.h"
#include "stanza.h"
#include "capabilities.h"
static GHashTable *sub_requests;

View File

@ -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