plugins/perl/common/Log.xs

changeset 11118
36db35a9da56
child 11290
136722ebf145
equal deleted inserted replaced
11117:2278a06da7c4 11118:36db35a9da56
1 #include "module.h"
2
3
4 MODULE = Gaim::Log PACKAGE = Gaim::Log PREFIX = gaim_log_
5 PROTOTYPES: ENABLE
6
7
8
9 int
10 gaim_log_common_sizer(log)
11 Gaim::Log log
12
13 void
14 gaim_log_common_writer(log, time, ext)
15 Gaim::Log log
16 time_t time
17 const char *ext
18
19
20 gint
21 gaim_log_compare(y, z)
22 gconstpointer y
23 gconstpointer z
24
25 void
26 gaim_log_free(log)
27 Gaim::Log log
28
29 char *
30 gaim_log_get_log_dir(type, name, account)
31 Gaim::LogType type
32 const char *name
33 Gaim::Account account
34
35 void
36 gaim_log_get_log_sets()
37 PREINIT:
38 GList *l;
39 PPCODE:
40 for (l = gaim_log_get_log_sets(); l != NULL; l = l->next) {
41 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
42 }
43
44 void
45 gaim_log_get_logs(type, name, account)
46 Gaim::LogType type
47 const char *name
48 Gaim::Account account
49 PREINIT:
50 GList *l;
51 PPCODE:
52 for (l = gaim_log_get_logs(type, name, account); l != NULL; l = l->next) {
53 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
54 }
55
56 int
57 gaim_log_get_size(log)
58 Gaim::Log log
59
60 void
61 gaim_log_get_system_logs(account)
62 Gaim::Account account
63 PREINIT:
64 GList *l;
65 PPCODE:
66 for (l = gaim_log_get_system_logs(account); l != NULL; l = l->next) {
67 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
68 }
69
70 int
71 gaim_log_get_total_size(type, name, account)
72 Gaim::LogType type
73 const char *name
74 Gaim::Account account
75
76 void
77 gaim_log_init()
78
79
80 void
81 gaim_log_logger_free(logger)
82 Gaim::Log::Logger logger
83
84 void
85 gaim_log_logger_get_options()
86 PREINIT:
87 GList *l;
88 PPCODE:
89 for (l = gaim_log_logger_get_options(); l != NULL; l = l->next) {
90 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
91 }
92
93 char *
94 gaim_log_read(log, flags)
95 Gaim::Log log
96 Gaim::Log::ReadFlags flags
97
98 gint
99 gaim_log_set_compare(y, z)
100 gconstpointer y
101 gconstpointer z
102

mercurial