roster.h (517B)
1 #ifndef ROSTER_H 2 #define ROSTER_H 3 4 typedef struct ilist ilist; 5 struct ilist { 6 char *name; 7 char *val; 8 ilist *p; 9 ilist *n; 10 }; 11 12 typedef struct jabberc jabberc; 13 struct jabberc { 14 char *stat; 15 char *show; 16 char *name; 17 char *reso; 18 char *serv; 19 char *jid; 20 char *dest; 21 ilist *list; 22 int debug; 23 int unreg; 24 }; 25 26 void freeilist(ilist *i); 27 void freejabberc(jabberc *j); 28 jabberc *mkjabberc(void); 29 ilist *lastilist(ilist *i); 30 ilist *mkilist(char *name, char *val); 31 ilist *addilist(ilist *i, char *name, char *val); 32 33 #endif