Mercurial > pidgin.yaz
comparison src/gaim.h @ 4890:89cb14edf8cf
[gaim-migrate @ 5220]
Moved utility function declarations into util.h and documented them.
Constificationized some vars in some functions.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 25 Mar 2003 06:26:24 +0000 |
parents | 7433f6a3569e |
children | d5c136474f26 |
comparison
equal
deleted
inserted
replaced
4889:f7150929332b | 4890:89cb14edf8cf |
---|---|
25 #ifdef HAVE_CONFIG_H | 25 #ifdef HAVE_CONFIG_H |
26 #include <config.h> | 26 #include <config.h> |
27 #endif | 27 #endif |
28 | 28 |
29 #include "core.h" | 29 #include "core.h" |
30 #include "list.h" | |
30 #include "ui.h" | 31 #include "ui.h" |
31 #include "list.h" | 32 #include "util.h" |
32 | 33 |
33 #define XPATCH BAD /* Because Kalla Said So */ | 34 #define XPATCH BAD /* Because Kalla Said So */ |
34 | 35 |
35 /* XXX CUI: when this is done being split, the only things below should be things | 36 /* XXX CUI: when this is done being split, the only things below should be things |
36 * both the core and the uis depend on e.g. the protocol definitions, etc, and | 37 * both the core and the uis depend on e.g. the protocol definitions, etc, and |
418 extern void serv_get_away(struct gaim_connection *, char *); | 419 extern void serv_get_away(struct gaim_connection *, char *); |
419 extern void serv_alias_buddy(struct buddy *); | 420 extern void serv_alias_buddy(struct buddy *); |
420 extern void serv_move_buddy(struct buddy *, struct group *, struct group *); | 421 extern void serv_move_buddy(struct buddy *, struct group *, struct group *); |
421 extern void serv_rename_group(struct gaim_connection *, struct group *, const char *); | 422 extern void serv_rename_group(struct gaim_connection *, struct group *, const char *); |
422 | 423 |
423 /* Functions in util.c */ | |
424 extern char *normalize(const char *); | |
425 extern char *tobase64(const char *); | |
426 extern void frombase64(const char *, char **, int *); | |
427 extern char *tobase16(const char *, int); | |
428 extern int frombase16(const char *, char **); | |
429 extern void clean_pid(); | |
430 extern char *date(); | |
431 extern gint linkify_text(char *); | |
432 extern char *sec_to_text(guint); | |
433 extern struct gaim_account *gaim_account_find(const char *, int) G_GNUC_PURE; | |
434 extern char *full_date() G_GNUC_PURE; | |
435 extern void check_gaim_versions(); | |
436 extern char *away_subs(char *, char *); | |
437 extern char *stylize(gchar *, int); | |
438 extern void show_usage (int, char *); | |
439 extern const gchar *gaim_home_dir(); | |
440 extern char *gaim_user_dir(); | |
441 extern void strncpy_nohtml(gchar *, const gchar *, size_t); | |
442 extern void strncpy_withhtml(gchar *, const gchar *, size_t); | |
443 extern gchar *strdup_withhtml(const gchar *); | |
444 extern void away_on_login(char *); | |
445 extern char *add_cr(char *); | |
446 extern void strip_linefeed(char *); | |
447 extern time_t get_time(int, int, int, int, int, int) G_GNUC_CONST; | |
448 extern FILE *gaim_mkstemp(gchar **); | |
449 extern const char *handle_uri(char *); | |
450 /* This guy does its best to convert a string to UTF-8 from an unknown | |
451 * encoding by checking the locale and trying some sane defaults ... | |
452 * if everything fails it returns NULL. */ | |
453 char *gaim_try_conv_to_utf8(const char *str); | |
454 char *gaim_getip_from_fd(int fd); | |
455 gint gaim_utf8_strcasecmp(const gchar *a, const gchar *b); | |
456 | |
457 /* Functions in log.h */ | 424 /* Functions in log.h */ |
458 extern FILE *open_log_file (const char *, int); | 425 extern FILE *open_log_file (const char *, int); |
459 extern void system_log(enum log_event, struct gaim_connection *, struct buddy *, int); | 426 extern void system_log(enum log_event, struct gaim_connection *, struct buddy *, int); |
460 extern void rm_log(struct log_conversation *); | 427 extern void rm_log(struct log_conversation *); |
461 extern struct log_conversation *find_log_info(const char *); | 428 extern struct log_conversation *find_log_info(const char *); |