Mercurial > pidgin.yaz
annotate src/log.h @ 7398:d60e1629ffde
[gaim-migrate @ 7994]
now when you try to IM someone in a jabber chat, it'll actually get there
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 31 Oct 2003 05:14:27 +0000 |
parents | 0c5637b5462e |
children | 643cbc9a6035 |
rev | line source |
---|---|
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 | |
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5934
diff
changeset
|
53 #ifdef __cplusplus |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5934
diff
changeset
|
54 extern "C" { |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5934
diff
changeset
|
55 #endif |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5934
diff
changeset
|
56 |
5872 | 57 extern GList *log_conversations; |
58 | |
59 FILE *open_log_file (const char *, int); | |
6695 | 60 void system_log(enum log_event, GaimConnection *, GaimBuddy *, int); |
5872 | 61 void rm_log(struct log_conversation *); |
62 struct log_conversation *find_log_info(const char *); | |
63 void update_log_convs(); | |
64 char *html_logize(const char *p); | |
65 | |
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5934
diff
changeset
|
66 #ifdef __cplusplus |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5934
diff
changeset
|
67 } |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5934
diff
changeset
|
68 #endif |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5934
diff
changeset
|
69 |
5872 | 70 #endif /* _GAIM_LOG_H_ */ |