summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-01-31 17:15:28 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-01-31 17:41:27 +0000
commitd8feabf6ef67e5b7e5b0a4d01ef983bea877f0b5 (patch)
treedf43184bfe0c355e97b918aa6547249b5e3151d3
parent6c684143294c9dc2becc3af0887f907c760bf8af (diff)
Connection: rely on Wocky replying to unhandled IQs.
https://bugs.freedesktop.org/show_bug.cgi?id=34975
m---------lib/ext/wocky0
-rw-r--r--src/connection.c37
2 files changed, 0 insertions, 37 deletions
diff --git a/lib/ext/wocky b/lib/ext/wocky
-Subproject d1896284653c29577b3ecb037406a9ab84a810d
+Subproject 43d93377facac1a7b9bae8e898c29b245ec476f
diff --git a/src/connection.c b/src/connection.c
index 73bd36ed5..11a2db64e 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -1566,7 +1566,6 @@ _gabble_connection_send_with_reply (GabbleConnection *conn,
static void connect_iq_callbacks (GabbleConnection *conn);
static gboolean iq_disco_cb (WockyPorter *, WockyStanza *, gpointer);
static gboolean iq_version_cb (WockyPorter *, WockyStanza *, gpointer);
-static gboolean iq_unknown_cb (WockyPorter *, WockyStanza *, gpointer);
static void connection_disco_cb (GabbleDisco *, GabbleDiscoRequest *,
const gchar *, const gchar *, WockyNode *, GError *, gpointer);
static void decrement_waiting_connected (GabbleConnection *connection);
@@ -2070,12 +2069,6 @@ connect_iq_callbacks (GabbleConnection *conn)
WOCKY_PORTER_HANDLER_PRIORITY_NORMAL,
connection_iq_last_cb, conn,
'(', "query", ':', NS_LAST, ')', NULL);
-
- /* FIXME: the porter should do this for us. */
- wocky_porter_register_handler_from_anyone (priv->porter,
- WOCKY_STANZA_TYPE_IQ, WOCKY_STANZA_SUB_TYPE_NONE,
- WOCKY_PORTER_HANDLER_PRIORITY_MIN,
- iq_unknown_cb, conn, NULL);
}
/**
@@ -2707,36 +2700,6 @@ iq_version_cb (WockyPorter *porter, WockyStanza *stanza, gpointer user_data)
}
/**
- * iq_unknown_cb
- *
- * Called by Wocky when we get an incoming <iq>. This handler is
- * at a lower priority than the others, and should reply with an error
- * about unsupported get/set attempts.
- */
-static gboolean
-iq_unknown_cb (WockyPorter *porter,
- WockyStanza *stanza,
- gpointer user_data)
-{
- WockyStanzaSubType subtype;
-
- wocky_stanza_get_type_info (stanza, NULL, &subtype);
-
- switch (subtype)
- {
- case WOCKY_STANZA_SUB_TYPE_GET:
- case WOCKY_STANZA_SUB_TYPE_SET:
- wocky_porter_send_iq_error (porter, stanza,
- WOCKY_XMPP_ERROR_SERVICE_UNAVAILABLE, NULL);
- return TRUE;
- default:
- break;
- }
-
- return FALSE;
-}
-
-/**
* set_status_to_connected
*
* Stage 4 of connecting, this function is called once all the events we were