--- a/CMakeLists.txt Thu Mar 25 20:47:31 2010 +0200
+++ b/CMakeLists.txt Tue Mar 30 22:18:56 2010 +0300
@@ -47,6 +47,7 @@
${MCABBER_LIBRARIES})
include_directories(${disco_SOURCE_DIR}
${disco_BINARY_DIR})
+set_target_properties(disco PROPERTIES COMPILE_FLAGS "-Wall")
## Packaging information
set(CPACK_PACKAGE_NAME libmcabber-disco)
--- a/disco.c Thu Mar 25 20:47:31 2010 +0200
+++ b/disco.c Tue Mar 30 22:18:56 2010 +0300
@@ -32,6 +32,7 @@
#include <mcabber/screen.h>
#include <mcabber/hbuf.h>
#include <mcabber/modules.h>
+#include <mcabber/caps.h>
#include "disco.h"
@@ -146,7 +147,6 @@
{
LmMessageNode *node = lm_message_get_node (message);
- const gchar *from = lm_message_node_get_attribute (node, "from");
GSList *identities = NULL;
GSList *features = NULL;
@@ -228,7 +228,6 @@
{
LmMessageNode *node = lm_message_get_node (message);
- const gchar *from = lm_message_node_get_attribute (node, "from");
GSList *items = NULL;
node = lm_message_node_get_child (node, "query");
@@ -299,6 +298,7 @@
// disco requests sending
//
+#if 0
static void disco_features_cb (gconstpointer data, gpointer userdata)
{
const gchar *feature = data;
@@ -306,6 +306,7 @@
*features = g_slist_insert_sorted (*features, (gpointer) feature, (GCompareFunc) g_strcmp0);
return;
}
+#endif
gpointer disco_info_request (const gchar *jid, const gchar *dnode, disco_info_handler_t handler, gpointer userdata, GDestroyNotify notify)
{
@@ -315,6 +316,7 @@
return NULL;
}
+#if 0
if (0 && !dnode) { // FIXME: no way to get identity(ies) from caps
gchar *bjid = jidtodisp (jid);
GSList *buddy = roster_find (bjid, jidsearch, ROSTER_TYPE_USER | ROSTER_TYPE_ROOM | ROSTER_TYPE_AGENT);
@@ -335,6 +337,7 @@
}
}
}
+#endif
{ // send request
LmMessage *request;