libpurple/protocols/qq/qq.h

branch
openq
changeset 31393
04447b1f6403
parent 28981
4e3922ab4844
child 31405
c101dd644b2b
equal deleted inserted replaced
31392:93902a4213b6 31393:04447b1f6403
36 #define QQ_KEY_LENGTH 16 36 #define QQ_KEY_LENGTH 16
37 37
38 /* steal from kazehakase :) */ 38 /* steal from kazehakase :) */
39 #define qq_strlen(s) ((s)!=NULL?strlen(s):0) 39 #define qq_strlen(s) ((s)!=NULL?strlen(s):0)
40 #define qq_strcmp(s1,s2) ((s1)!=NULL && (s2)!=NULL?strcmp(s1,s2):0) 40 #define qq_strcmp(s1,s2) ((s1)!=NULL && (s2)!=NULL?strcmp(s1,s2):0)
41
42 /* business logic layer */
43 typedef guint32 UPDCLS;
44 typedef guint32 UID;
41 45
42 typedef struct _qq_data qq_data; 46 typedef struct _qq_data qq_data;
43 typedef struct _qq_buddy_data qq_buddy_data; 47 typedef struct _qq_buddy_data qq_buddy_data;
44 typedef struct _qq_interval qq_interval; 48 typedef struct _qq_interval qq_interval;
45 typedef struct _qq_net_stat qq_net_stat; 49 typedef struct _qq_net_stat qq_net_stat;
82 glong rcved; 86 glong rcved;
83 glong rcved_dup; 87 glong rcved_dup;
84 }; 88 };
85 89
86 struct _qq_buddy_data { 90 struct _qq_buddy_data {
87 guint32 uid; 91 UID uid;
88 guint16 face; /* index: 0 - 299 */ 92 guint16 face; /* index: 0 - 299 */
89 guint8 age; 93 guint8 age;
90 guint8 gender; 94 guint8 gender;
91 gchar *nickname; 95 gchar *nickname;
92 struct in_addr ip; 96 struct in_addr ip;
151 guint network_watcher; 155 guint network_watcher;
152 gint resend_times; 156 gint resend_times;
153 157
154 GList *transactions; /* check ack packet and resend */ 158 GList *transactions; /* check ack packet and resend */
155 159
156 guint32 uid; /* QQ number */ 160 UID uid; /* QQ number */
157 161
158 qq_login_data ld; 162 qq_login_data ld;
159 qq_captcha_data captcha; 163 qq_captcha_data captcha;
160 164
161 guint8 session_key[QQ_KEY_LENGTH]; /* later use this as key in this session */ 165 guint8 session_key[QQ_KEY_LENGTH]; /* later use this as key in this session */
185 GList *groups; 189 GList *groups;
186 190
187 gboolean is_show_notice; 191 gboolean is_show_notice;
188 gboolean is_show_news; 192 gboolean is_show_news;
189 gboolean is_show_chat; 193 gboolean is_show_chat;
194 guint32 custom;
190 195
191 guint16 send_im_id; /* send IM sequence number */ 196 guint16 send_im_id; /* send IM sequence number */
192 }; 197 };
193 198
194 #endif 199 #endif

mercurial