XMPP: add proper cleanup; add basic support for body messages
[citadel.git] / citadel / modules / xmpp / xmpp_xmacros.h
index 3d5d94d539f941b07780c2c1506aca935f68b524..f7427b835c9a396e33d22ee8f1ad4151cda8ad94 100644 (file)
@@ -3,12 +3,14 @@
  * define the structures for one token each
  * typename: TheToken_<Tokenname>
  */
+#define PAYLOAD(STRUCTNAME, NAME) StrBuf *NAME;int encoding_##NAME;
 #define STRPROP(STRUCTNAME, NAME) StrBuf *NAME;
 #define TOKEN(NAME, STRUCT) typedef struct __##NAME    \
        STRUCT                                          \
        TheToken_##NAME;
 #include "token.def"
 #undef STRPROP
+#undef PAYLOAD
 #undef TOKEN
 
 
@@ -21,6 +23,7 @@
        void free_buf_##NAME(TheToken_##NAME *pdata);
 #include "token.def"
 #undef STRPROP
+#undef PAYLOAD
 #undef TOKEN
 
 /*
@@ -32,4 +35,5 @@
 
 #include "token.def"
 #undef STRPROP
+#undef PAYLOAD
 #undef TOKEN