26345c6683b27252a5c5a709469c435f543aee7a
[citadel.git] / citadel / modules / xmpp / token.def
1
2 #define NAMESPACE_iq "jabber:client"
3 TOKEN(iq,
4       {
5               STRPROP(iq, type);
6               STRPROP(iq, id);
7               STRPROP(iq, from);
8               STRPROP(iq, to);
9       })
10
11
12 #define NAMESPACE_piq "bub"
13
14 TOKEN(piq,
15       {
16               STRPROP(piq, type);
17               STRPROP(piq, id);
18               STRPROP(piq, from);
19               STRPROP(piq, to);
20       })
21
22 #define NAMESPACE_message "jabber:client"
23 TOKEN(message,
24         {
25                 STRPROP(message, to);
26                 STRPROP(message, type);
27                 STRPROP(message, id);
28                 PAYLOAD(message, body);
29         })
30
31
32 // <message type='chat' id='purplef5a7ed34' to='testuser@blarg.potzblitz.outgesourced.org'><active xmlns='http://jabber.org/protocol/chatstates'/><body>gci</body></message>