1
/* $Id: xmpp-rosters.h,v 1.9 2007/11/26 12:55:07 errtu Exp $ */
1
3
#ifndef __XMPP_ROSTER_H
2
4
#define __XMPP_ROSTER_H
6
XMPP_PRESENCE_UNAVAILABLE,
10
XMPP_PRESENCE_AVAILABLE,
8
XMPP_PRESENCE_UNAVAILABLE,
12
XMPP_PRESENCE_AVAILABLE,
14
XMPP_PRESENCE_ONLINE_STR,
15
XMPP_PRESENCE_SHOW_LEN
13
extern const gchar *xmpp_presence_show[];
17
extern const char *xmpp_presence_show[];
16
XMPP_SUBSCRIPTION_REMOVE,
17
XMPP_SUBSCRIPTION_NONE,
19
XMPP_SUBSCRIPTION_FROM,
20
XMPP_SUBSCRIPTION_BOTH
20
XMPP_SUBSCRIPTION_REMOVE,
21
XMPP_SUBSCRIPTION_NONE,
23
XMPP_SUBSCRIPTION_FROM,
24
XMPP_SUBSCRIPTION_BOTH
22
extern const gchar *xmpp_subscription[];
24
extern const gchar *xmpp_service_name;
26
typedef struct _XmppRosterRessource {
31
} XmppRosterRessource;
33
typedef struct _XmppRosterUser {
42
typedef struct _XmppRosterGroup {
48
gint xmpp_sort_user_func(gconstpointer, gconstpointer);
49
XmppRosterUser *xmpp_find_user_from_groups(GSList *, const gchar *,
51
gboolean xmpp_roster_show_user(XmppRosterUser *);
52
void xmpp_roster_update(XMPP_SERVER_REC *, LmMessageNode *);
53
void xmpp_roster_update_presence(XMPP_SERVER_REC *, const gchar *,
54
const gchar *, const gchar *, const gchar *);
55
void xmpp_roster_presence_error(XMPP_SERVER_REC *, const gchar *);
56
void xmpp_roster_presence_unavailable(XMPP_SERVER_REC *, const gchar *,
58
void xmpp_roster_cleanup(XMPP_SERVER_REC *);
26
extern const char *xmpp_subscription[];
28
/* roster structure */
29
typedef struct _XMPP_ROSTER_RESOURCE_REC {
35
} XMPP_ROSTER_RESOURCE_REC;
37
typedef struct _XMPP_ROSTER_USER_REC {
44
} XMPP_ROSTER_USER_REC;
46
typedef struct _XMPP_ROSTER_GROUP_REC {
50
} XMPP_ROSTER_GROUP_REC;
53
void xmpp_rosters_init(void);
54
void xmpp_rosters_deinit(void);