| ---
roster.h (887B)
---
1 #ifndef ROSTER_H
2 #define ROSTER_H
3
4 typedef struct rostern rostern;
5 struct rostern {
6 rostern *n;
7 rostern *p;
8 char *name;
9 char *jid;
10 char *status;
11 char *show;
12 char *subsc;
13 char *group;
14 };
15
16 typedef struct jabberc jabberc;
17 struct jabberc {
18 char *stat;
19 char *show;
20 char *name;
21 char *reso;
22 char *serv;
23 char *jid;
24 int debug;
25 int reg;
26 int last;
27 rostern *rost;
28 };
29
30 void freerostern(rostern *r);
31 void freerosterl(rostern *r);
32 void freejabberc(jabberc *j);
33 rostern *mkrostern(void);
34 jabberc *mkjabberc(void);
35 rostern *delrostern(rostern *r);
36 rostern *lastrostern(rostern *r);
37 rostern *addrostern(rostern *r, rostern *n);
38 rostern *statusrostern(rostern *r, char *name, char *jid, char *status, char *show);
39 char *namerostern(rostern *r, char *jid, char *name);
40 rostern *searchrostern(rostern *r, char *name, char *jid);
41 rostern *delname(rostern *r, char *name, char *jid);
42
43 #endif |