XMPP: add X-Macros to automated parse tokens
[citadel.git] / citadel / modules / xmpp / token.def
diff --git a/citadel/modules/xmpp/token.def b/citadel/modules/xmpp/token.def
new file mode 100644 (file)
index 0000000..6799c8d
--- /dev/null
@@ -0,0 +1,20 @@
+
+#define NAMESPACE_iq "jabber:client"
+TOKEN(iq,
+      {
+             STRPROP(iq, type);
+             STRPROP(iq, id);
+             STRPROP(iq, from);
+             STRPROP(iq, to);
+      })
+
+
+#define NAMESPACE_piq "bub"
+
+TOKEN(piq,
+      {
+             STRPROP(piq, type);
+             STRPROP(piq, id);
+             STRPROP(piq, from);
+             STRPROP(piq, to);
+      })