Mercurial > pidgin.yaz
annotate plugins/perl/common/Log.xs @ 14020:13e7ba964993
[gaim-migrate @ 16617]
Minor tweaks to the context-menu in the buddylist.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 02 Aug 2006 13:37:13 +0000 |
parents | c886fc7e3f24 |
children |
rev | line source |
---|---|
11118 | 1 #include "module.h" |
2 | |
3 MODULE = Gaim::Log PACKAGE = Gaim::Log PREFIX = gaim_log_ | |
4 PROTOTYPES: ENABLE | |
5 | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
6 int |
11118 | 7 gaim_log_common_sizer(log) |
8 Gaim::Log log | |
9 | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
10 void |
11294 | 11 gaim_log_common_writer(log, ext) |
11118 | 12 Gaim::Log log |
13 const char *ext | |
14 | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
15 gint |
11118 | 16 gaim_log_compare(y, z) |
17 gconstpointer y | |
18 gconstpointer z | |
19 | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
20 void |
11118 | 21 gaim_log_free(log) |
22 Gaim::Log log | |
23 | |
24 char * | |
25 gaim_log_get_log_dir(type, name, account) | |
26 Gaim::LogType type | |
27 const char *name | |
28 Gaim::Account account | |
29 | |
30 void | |
31 gaim_log_get_log_sets() | |
32 PREINIT: | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
33 GHashTable *l; |
11118 | 34 PPCODE: |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
35 l = gaim_log_get_log_sets(); |
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
36 XPUSHs(sv_2mortal(gaim_perl_bless_object(l, "GHashTable"))); |
11118 | 37 |
38 void | |
39 gaim_log_get_logs(type, name, account) | |
40 Gaim::LogType type | |
41 const char *name | |
42 Gaim::Account account | |
43 PREINIT: | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
44 GList *l; |
11118 | 45 PPCODE: |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
46 for (l = gaim_log_get_logs(type, name, account); l != NULL; l = l->next) { |
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
47 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); |
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
48 } |
11118 | 49 |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
50 int |
11118 | 51 gaim_log_get_size(log) |
52 Gaim::Log log | |
53 | |
54 void | |
55 gaim_log_get_system_logs(account) | |
56 Gaim::Account account | |
57 PREINIT: | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
58 GList *l; |
11118 | 59 PPCODE: |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
60 for (l = gaim_log_get_system_logs(account); l != NULL; l = l->next) { |
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
61 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); |
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
62 } |
11118 | 63 |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
64 int |
11118 | 65 gaim_log_get_total_size(type, name, account) |
66 Gaim::LogType type | |
67 const char *name | |
68 Gaim::Account account | |
69 | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
70 void |
11118 | 71 gaim_log_init() |
72 | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
73 void |
11118 | 74 gaim_log_logger_free(logger) |
75 Gaim::Log::Logger logger | |
76 | |
77 void | |
78 gaim_log_logger_get_options() | |
79 PREINIT: | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
80 GList *l; |
11118 | 81 PPCODE: |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
82 for (l = gaim_log_logger_get_options(); l != NULL; l = l->next) { |
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
83 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); |
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
84 } |
11118 | 85 |
86 char * | |
87 gaim_log_read(log, flags) | |
88 Gaim::Log log | |
89 Gaim::Log::ReadFlags flags | |
90 | |
12780
c886fc7e3f24
[gaim-migrate @ 15127]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11294
diff
changeset
|
91 gint |
11118 | 92 gaim_log_set_compare(y, z) |
93 gconstpointer y | |
94 gconstpointer z |