1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
#ifndef __ROSTER_H
#define __ROSTER_H
enum {
XMPP_PRESENCE_UNAVAILABLE,
XMPP_PRESENCE_ERROR,
XMPP_PRESENCE_XA,
XMPP_PRESENCE_DND,
XMPP_PRESENCE_AWAY,
XMPP_PRESENCE_AVAILABLE,
XMPP_PRESENCE_CHAT,
XMPP_PRESENCE_ONLINE,
XMPP_PRESENCE_SHOW_LEN
};
extern const char *xmpp_presence_show[];
enum {
XMPP_SUBSCRIPTION_REMOVE,
XMPP_SUBSCRIPTION_NONE,
XMPP_SUBSCRIPTION_TO,
XMPP_SUBSCRIPTION_FROM,
XMPP_SUBSCRIPTION_BOTH
};
extern const char *xmpp_subscription[];
/* roster structure */
typedef struct _XMPP_ROSTER_RESOURCE_REC {
char *name;
int priority;
int show;
char *status;
char *composing_id;
char *pgp_keyid;
int pgp_encrypt;
} XMPP_ROSTER_RESOURCE_REC;
typedef struct _XMPP_ROSTER_USER_REC {
char *jid;
char *name;
int subscription;
gboolean error;
GSList *resources;
} XMPP_ROSTER_USER_REC;
typedef struct _XMPP_ROSTER_GROUP_REC {
char *name;
GSList *users;
} XMPP_ROSTER_GROUP_REC;
__BEGIN_DECLS
void rosters_init(void);
void rosters_deinit(void);
__END_DECLS
#endif
|