Mercurial > pidgin
comparison src/core.h @ 4227:a614423c648f
[gaim-migrate @ 4471]
This is a patch from Nathan Walp that adds a
"char server_alias[BUDDY_ALIAS_MAXLEN]" to struct buddy, and a preference
option to show the server alias instead of the alias set by you. It
shouldn't cause any problems. But then again, faceprint is a crazy patch
writer, with an emphasis on crazy, if you know what I mean. Huh? Get it?
"Crazy"? I kill me. But right after I kill Time Warner.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 07 Jan 2003 17:44:34 +0000 |
parents | f53370197bb9 |
children | cddb50734169 |
comparison
equal
deleted
inserted
replaced
4226:a7d1eddc0afc | 4227:a614423c648f |
---|---|
147 #define BUDDY_ALIAS_MAXLEN 388 /* because MSN names can be 387 characters */ | 147 #define BUDDY_ALIAS_MAXLEN 388 /* because MSN names can be 387 characters */ |
148 | 148 |
149 struct buddy { | 149 struct buddy { |
150 int edittype; /* XXX CUI: this is really a GUI function and we need to put this in ui.h */ | 150 int edittype; /* XXX CUI: this is really a GUI function and we need to put this in ui.h */ |
151 char name[80]; | 151 char name[80]; |
152 char show[BUDDY_ALIAS_MAXLEN]; | 152 char alias[BUDDY_ALIAS_MAXLEN]; |
153 int present; | 153 char server_alias[BUDDY_ALIAS_MAXLEN]; |
154 int present; | |
154 int evil; | 155 int evil; |
155 time_t signon; | 156 time_t signon; |
156 time_t idle; | 157 time_t idle; |
157 int uc; | 158 int uc; |
158 guint caps; /* woohoo! */ | 159 guint caps; /* woohoo! */ |
188 extern void do_import(struct gaim_connection *, const char *); | 189 extern void do_import(struct gaim_connection *, const char *); |
189 extern int bud_list_cache_exists(struct gaim_connection *); | 190 extern int bud_list_cache_exists(struct gaim_connection *); |
190 extern void toc_build_config(struct gaim_connection *, char *, int len, gboolean); | 191 extern void toc_build_config(struct gaim_connection *, char *, int len, gboolean); |
191 extern void parse_toc_buddy_list(struct gaim_connection *, char *); | 192 extern void parse_toc_buddy_list(struct gaim_connection *, char *); |
192 extern void signoff_blocked(struct gaim_connection *); | 193 extern void signoff_blocked(struct gaim_connection *); |
194 extern char* get_buddy_alias_only(struct buddy *); | |
195 extern char* get_buddy_alias(struct buddy *); | |
193 | 196 |
194 /* Functions in core.c */ | 197 /* Functions in core.c */ |
195 extern gint UI_write(struct UI *, guchar *, int); | 198 extern gint UI_write(struct UI *, guchar *, int); |
196 extern void UI_build_write(struct UI *, guchar, guchar, ...); | 199 extern void UI_build_write(struct UI *, guchar, guchar, ...); |
197 extern void UI_broadcast(guchar *data, int); | 200 extern void UI_broadcast(guchar *data, int); |
238 extern void serv_got_eviled(struct gaim_connection *, char *, int); | 241 extern void serv_got_eviled(struct gaim_connection *, char *, int); |
239 extern void serv_got_chat_invite(struct gaim_connection *, char *, char *, char *, GList *); | 242 extern void serv_got_chat_invite(struct gaim_connection *, char *, char *, char *, GList *); |
240 extern struct conversation *serv_got_joined_chat(struct gaim_connection *, int, char *); | 243 extern struct conversation *serv_got_joined_chat(struct gaim_connection *, int, char *); |
241 extern void serv_got_chat_left(struct gaim_connection *, int); | 244 extern void serv_got_chat_left(struct gaim_connection *, int); |
242 extern void serv_got_chat_in(struct gaim_connection *, int, char *, int, char *, time_t); | 245 extern void serv_got_chat_in(struct gaim_connection *, int, char *, int, char *, time_t); |
246 extern void serv_got_alias(struct gaim_connection *, char *, char *); | |
243 extern void serv_finish_login(); | 247 extern void serv_finish_login(); |
244 | 248 |
245 #endif /* _CORE_H_ */ | 249 #endif /* _CORE_H_ */ |