mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 17:56:22 +00:00
Check for libmesode, fall back to libstrophe
This commit is contained in:
@@ -98,6 +98,13 @@ main(int argc, char **argv)
|
||||
|
||||
g_print("Build information:\n");
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
g_print("XMPP library: libmesode\n");
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
g_print("XMPP library: libstrophe\n");
|
||||
#endif
|
||||
|
||||
gboolean notify_enabled = FALSE;
|
||||
|
||||
#ifdef HAVE_OSXNOTIFY
|
||||
|
||||
@@ -32,12 +32,20 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
#include "log.h"
|
||||
@@ -468,4 +476,4 @@ _send_bookmarks(void)
|
||||
|
||||
xmpp_send(conn, iq);
|
||||
xmpp_stanza_release(iq);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,13 @@
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
#include "log.h"
|
||||
@@ -683,4 +689,4 @@ _save_cache(void)
|
||||
g_file_set_contents(cache_loc, g_cache_data, g_data_size, NULL);
|
||||
g_chmod(cache_loc, S_IRUSR | S_IWUSR);
|
||||
g_free(g_cache_data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,14 @@
|
||||
#ifndef XMPP_CAPABILITIES_H
|
||||
#define XMPP_CAPABILITIES_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "xmpp/xmpp.h"
|
||||
|
||||
|
||||
@@ -32,11 +32,18 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "chat_session.h"
|
||||
#include "common.h"
|
||||
|
||||
@@ -35,7 +35,14 @@
|
||||
#ifndef XMPP_CONNECTION_H
|
||||
#define XMPP_CONNECTION_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
|
||||
@@ -32,10 +32,18 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "log.h"
|
||||
@@ -714,4 +722,4 @@ form_reset_autocompleters(DataForm *form)
|
||||
autocomplete_reset(field->value_ac);
|
||||
curr_field = g_slist_next(curr_field);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,13 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "log.h"
|
||||
#include "muc.h"
|
||||
|
||||
@@ -32,10 +32,17 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "chat_session.h"
|
||||
#include "config/preferences.h"
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -39,6 +41,13 @@
|
||||
#include <glib.h>
|
||||
#include <glib/gprintf.h>
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
#include "config/preferences.h"
|
||||
#include "log.h"
|
||||
|
||||
@@ -32,12 +32,20 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "log.h"
|
||||
#include "profanity.h"
|
||||
|
||||
@@ -32,11 +32,19 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
#include "log.h"
|
||||
|
||||
@@ -35,7 +35,15 @@
|
||||
#ifndef XMPP_STANZA_H
|
||||
#define XMPP_STANZA_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include <xmpp/xmpp.h>
|
||||
|
||||
#define STANZA_NAME_ACTIVE "active"
|
||||
|
||||
@@ -35,7 +35,14 @@
|
||||
#ifndef XMPP_XMPP_H
|
||||
#define XMPP_XMPP_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#include <mesode.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#include <strophe.h>
|
||||
#endif
|
||||
|
||||
#include "config/accounts.h"
|
||||
#include "contact.h"
|
||||
|
||||
Reference in New Issue
Block a user