Mercurial > ~mikael > mcabber > hg
view mcabber/src/jab_priv.h @ 824:37ef269330f0
Show incomplete subscriptions in the roster
When the "from" subscription is missing, curly braces are used.
When the "to" subscription is missing, the status is replaced by '?'.
Thanks to pmw for the suggestion.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 25 Apr 2006 07:13:43 +0200 |
parents | 109dcf5fc111 |
children | 1bdf0f1b16c0 |
line wrap: on
line source
#ifndef __JAB_PRIV_H__ #define __JAB_PRIV_H__ 1 /* This header file declares functions used by jab*.c only. */ #include "jabglue.h" #include "events.h" #define JABBER_AGENT_GROUP "Jabber Agents" enum enum_jstate { STATE_CONNECTING, STATE_GETAUTH, STATE_SENDAUTH, STATE_LOGGED }; struct T_presence { enum imstatus st; const char *msg; }; #define IQS_DEFAULT_TIMEOUT 90 #define IQS_MAX_TIMEOUT 600 #define IQS_CONTEXT_RESULT 0 /* Normal result should be zero */ #define IQS_CONTEXT_TIMEOUT 1 #define IQS_CONTEXT_ERROR 2 extern enum enum_jstate jstate; extern char *mcabber_version(void); char *jidtodisp(const char *jid); void handle_packet_iq(jconn conn, char *type, char *from, xmlnode xmldata); void display_server_error(xmlnode x); eviqs *iqs_new(guint8 type, const char *ns, const char *prefix, time_t timeout); int iqs_del(const char *iqid); int iqs_callback(const char *iqid, xmlnode xml_result, guint iqcontext); void iqs_check_timeout(time_t now_t); void iqscallback_auth(eviqs *iqp, xmlnode xml_result); void request_version(const char *fulljid); void request_time(const char *fulljid); #endif /* __JAB_PRIV_H__ */ /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */