Sat, 14 Jun 2003 23:21:02 +0000
[gaim-migrate @ 6304]
The legendary Header File Cleanup! Files now only include what they need.
This should reduce the number of files that must recompile when a header
file changes. It's a lot nicer. Trust me on it. I also added a couple new
header files. I hope I didn't break TOO much!
| 5872 | 1 | /** |
| 2 | * @file log.h Logging API | |
| 3 | * @ingroup core | |
| 4 | * | |
| 5 | * gaim | |
| 6 | * | |
| 7 | * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | |
| 8 | * | |
| 9 | * This program is free software; you can redistribute it and/or modify | |
| 10 | * it under the terms of the GNU General Public License as published by | |
| 11 | * the Free Software Foundation; either version 2 of the License, or | |
| 12 | * (at your option) any later version. | |
| 13 | * | |
| 14 | * This program is distributed in the hope that it will be useful, | |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | * GNU General Public License for more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU General Public License | |
| 20 | * along with this program; if not, write to the Free Software | |
| 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 22 | */ | |
| 23 | #ifndef _GAIM_LOG_H_ | |
| 24 | #define _GAIM_LOG_H_ | |
| 25 | ||
| 26 | #include "blist.h" | |
| 27 | #include "connection.h" | |
| 28 | #include "conversation.h" | |
| 29 | ||
| 30 | /* XXX Temporary! */ | |
| 31 | #define OPT_LOG_BUDDY_SIGNON 0x00000004 | |
| 32 | #define OPT_LOG_BUDDY_IDLE 0x00000008 | |
| 33 | #define OPT_LOG_BUDDY_AWAY 0x00000010 | |
| 34 | #define OPT_LOG_MY_SIGNON 0x00000020 | |
| 35 | ||
| 36 | ||
| 37 | enum log_event { | |
| 38 | log_signon = 0, | |
| 39 | log_signoff, | |
| 40 | log_away, | |
| 41 | log_back, | |
| 42 | log_idle, | |
| 43 | log_unidle, | |
| 44 | log_quit | |
| 45 | }; | |
| 46 | ||
| 47 | struct log_conversation { | |
| 48 | char name[80]; | |
| 49 | char filename[512]; | |
| 50 | struct log_conversation *next; | |
| 51 | }; | |
| 52 | ||
| 53 | extern GList *log_conversations; | |
| 54 | ||
| 55 | FILE *open_log_file (const char *, int); | |
| 56 | void system_log(enum log_event, GaimConnection *, struct buddy *, int); | |
| 57 | void rm_log(struct log_conversation *); | |
| 58 | struct log_conversation *find_log_info(const char *); | |
| 59 | void update_log_convs(); | |
| 60 | void save_convo(GtkWidget *save, GaimConversation *c); | |
| 61 | char *html_logize(const char *p); | |
| 62 | ||
| 63 | #endif /* _GAIM_LOG_H_ */ |