X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fxmpp%2Fserv_xmpp.h;fp=citadel%2Fmodules%2Fxmpp%2Fserv_xmpp.h;h=c3281a5c486e21fe6039cfca737b2e234a9fbb33;hp=df1298c9d72b20ebe056f42461077875279d4d3a;hb=7a4aaaf5d40c2992763ac992e840edd4efbe4623;hpb=73d9309f82fc743794390f6ea82e19b593261f17 diff --git a/citadel/modules/xmpp/serv_xmpp.h b/citadel/modules/xmpp/serv_xmpp.h index df1298c9d..c3281a5c4 100644 --- a/citadel/modules/xmpp/serv_xmpp.h +++ b/citadel/modules/xmpp/serv_xmpp.h @@ -83,3 +83,16 @@ void xmpp_massacre_roster(void); void xmpp_delete_old_buddies_who_no_longer_exist_from_the_client_roster(void); int xmpp_is_visible(struct CitContext *from, struct CitContext *to_whom); char *xmlesc(char *buf, char *str, int bufsiz); + +extern int XMPPSrvDebugEnable; + +#define DBGLOG(LEVEL) if ((LEVEL != LOG_DEBUG) || (XMPPSrvDebugEnable != 0)) + +#define XMPP_syslog(LEVEL, FORMAT, ...) \ + DBGLOG(LEVEL) syslog(LEVEL, \ + "XMPP: " FORMAT, __VA_ARGS__) + +#define XMPPM_syslog(LEVEL, FORMAT) \ + DBGLOG(LEVEL) syslog(LEVEL, \ + "XMPP: " FORMAT); +