diff options
author | fiaxh <git@mx.ax.lt> | 2017-05-30 22:17:41 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-05-30 22:28:36 +0200 |
commit | 3a8df2069eba3a5a4174749fc46a6698c1877ec1 (patch) | |
tree | b39cffc773f3984acaa7dab92d0eb160faa48e32 /xmpp-vala/src/module/iq | |
parent | 142257a544b36e60b738e55e5f9f096f1169c389 (diff) | |
download | dino-3a8df2069eba3a5a4174749fc46a6698c1877ec1.tar.gz dino-3a8df2069eba3a5a4174749fc46a6698c1877ec1.zip |
MUC config form (data forms), MUC room info
Diffstat (limited to 'xmpp-vala/src/module/iq')
-rw-r--r-- | xmpp-vala/src/module/iq/module.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmpp-vala/src/module/iq/module.vala b/xmpp-vala/src/module/iq/module.vala index eed3389d..909ec984 100644 --- a/xmpp-vala/src/module/iq/module.vala +++ b/xmpp-vala/src/module/iq/module.vala @@ -11,15 +11,15 @@ namespace Xmpp.Iq { private HashMap<string, ResponseListener> responseListeners = new HashMap<string, ResponseListener>(); private HashMap<string, ArrayList<Handler>> namespaceRegistrants = new HashMap<string, ArrayList<Handler>>(); - [CCode (has_target = false)] public delegate void OnResult(XmppStream stream, Iq.Stanza iq, Object reference); - public void send_iq(XmppStream stream, Iq.Stanza iq, OnResult? listener = null, Object? reference = null) { + [CCode (has_target = false)] public delegate void OnResult(XmppStream stream, Iq.Stanza iq, Object store); + public void send_iq(XmppStream stream, Iq.Stanza iq, OnResult? listener = null, Object? store = null) { try { stream.write(iq.stanza); } catch (IOStreamError e) { print(@"$(e.message)\n"); } if (listener != null) { - responseListeners[iq.id] = new ResponseListener(listener, reference); + responseListeners[iq.id] = new ResponseListener(listener, store); } } @@ -61,9 +61,9 @@ namespace Xmpp.Iq { responseListeners.unset(iq.id); } } else { - ArrayList<StanzaNode> children = node.get_all_subnodes(); + Gee.List<StanzaNode> children = node.get_all_subnodes(); if (children.size == 1 && namespaceRegistrants.has_key(children[0].ns_uri)) { - ArrayList<Handler> handlers = namespaceRegistrants[children[0].ns_uri]; + Gee.List<Handler> handlers = namespaceRegistrants[children[0].ns_uri]; foreach (Handler handler in handlers) { if (iq.type_ == Iq.Stanza.TYPE_GET) { handler.on_iq_get(stream, iq); |