~ubuntu-branches/ubuntu/trusty/irssi-plugin-xmpp/trusty

« back to all changes in this revision

Viewing changes to src/core/xmpp-rosters.h

  • Committer: Bazaar Package Importer
  • Author(s): David Ammouial
  • Date: 2009-05-12 12:14:44 UTC
  • mfrom: (1.1.3 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090512121444-5jeho5h3zsy4oij7
Tags: 0.13+cvs20090406-1
* New CVS snapshot, built against irssi-dev 0.8.13:
  - New features and bugfixes.
  - Fix segfault when successfully identified (Closes: #521227).
  - Fix build error (Closes: #527697)
* Depend on irssi >=0.8.13, build-depend on irssi-dev >=0.8.13.
* Bump Standards-Version to 3.8.1 (no changes needed).
* Add INTERNAL to documentation files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: xmpp-rosters.h,v 1.9 2007/11/26 12:55:07 errtu Exp $ */
2
 
 
3
 
#ifndef __XMPP_ROSTER_H
4
 
#define __XMPP_ROSTER_H
5
 
 
6
 
enum {
7
 
        XMPP_PRESENCE_ERROR,
8
 
        XMPP_PRESENCE_UNAVAILABLE,
9
 
        XMPP_PRESENCE_XA,
10
 
        XMPP_PRESENCE_DND,
11
 
        XMPP_PRESENCE_AWAY,
12
 
        XMPP_PRESENCE_AVAILABLE,
13
 
        XMPP_PRESENCE_CHAT,
14
 
        XMPP_PRESENCE_ONLINE_STR,
15
 
        XMPP_PRESENCE_SHOW_LEN
16
 
};
17
 
extern const char *xmpp_presence_show[];
18
 
 
19
 
enum {
20
 
        XMPP_SUBSCRIPTION_REMOVE,
21
 
        XMPP_SUBSCRIPTION_NONE,
22
 
        XMPP_SUBSCRIPTION_TO,
23
 
        XMPP_SUBSCRIPTION_FROM,
24
 
        XMPP_SUBSCRIPTION_BOTH
25
 
};
26
 
extern const char *xmpp_subscription[];
27
 
 
28
 
/* roster structure */
29
 
typedef struct _XMPP_ROSTER_RESOURCE_REC {
30
 
        char    *name;
31
 
        int      priority;
32
 
        int      show;
33
 
        char    *status;
34
 
        char    *composing_id;
35
 
} XMPP_ROSTER_RESOURCE_REC;
36
 
 
37
 
typedef struct _XMPP_ROSTER_USER_REC {
38
 
        char    *jid;
39
 
        char    *name;
40
 
        int      subscription;
41
 
        gboolean error;
42
 
 
43
 
        GSList  *resources;
44
 
} XMPP_ROSTER_USER_REC;
45
 
 
46
 
typedef struct _XMPP_ROSTER_GROUP_REC {
47
 
        char    *name;
48
 
 
49
 
        GSList  *users;
50
 
} XMPP_ROSTER_GROUP_REC;
51
 
 
52
 
__BEGIN_DECLS
53
 
void xmpp_rosters_init(void);
54
 
void xmpp_rosters_deinit(void);
55
 
__END_DECLS
56
 
 
57
 
#endif