Mercurial > pidgin.yaz
comparison src/log.h @ 8573:7dcd6f26e4a7
[gaim-migrate @ 9321]
" This patch reimplements the system log. It writes
system log to
~/.gaim/logs/<protocol>/<username>/.system/<timestamp>.(txt|html),
where <timestamp> is the time that the account
<username> with <protocol> signs on. Nathan (faceprint)
and LSchiere suggested this logging scheme. No code is
currently written to read the old system logs.
Note that if you change the logging format, you need to
re-login the accounts for the change to take effect."
--Ka-Hing (javabsp) Cheung
who continues:
"Now this one applies, also contains a rider patch that, if
you enable sound for "Someone says your name in chat", it
will not play a sound if the message is a system message,
like if jabber chat tells you that "*** becomes available"
and *** is you, it won't play a sound."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 03 Apr 2004 18:34:29 +0000 |
parents | 81079e3eda47 |
children | 92cbf9713795 |
comparison
equal
deleted
inserted
replaced
8572:f6890288bbe0 | 8573:7dcd6f26e4a7 |
---|---|
85 int (*size)(GaimLog *log); | 85 int (*size)(GaimLog *log); |
86 | 86 |
87 /** Returns the total size of all the logs. If this is undefined a default | 87 /** Returns the total size of all the logs. If this is undefined a default |
88 * implementation is used */ | 88 * implementation is used */ |
89 int (*total_size)(const char *name, GaimAccount *account); | 89 int (*total_size)(const char *name, GaimAccount *account); |
90 | |
91 /** This function returns a sorted GList of available system GaimLogs */ | |
92 GList *(*list_syslog)(GaimAccount *account); | |
90 }; | 93 }; |
91 | 94 |
92 /** | 95 /** |
93 * A log. Not the wooden type. | 96 * A log. Not the wooden type. |
94 */ | 97 */ |
167 * @return A sorted list of GaimLogs | 170 * @return A sorted list of GaimLogs |
168 */ | 171 */ |
169 GList *gaim_log_get_logs(const char *name, GaimAccount *account); | 172 GList *gaim_log_get_logs(const char *name, GaimAccount *account); |
170 | 173 |
171 /** | 174 /** |
175 * Returns a list of all available system logs | |
176 * | |
177 * @param account The account | |
178 * @return A sorted list of GaimLogs | |
179 */ | |
180 GList *gaim_log_get_system_logs(GaimAccount *account); | |
181 | |
182 /** | |
172 * Returns the size of a log | 183 * Returns the size of a log |
173 * | 184 * |
174 * @param log The log | 185 * @param log The log |
175 * @return The size of the log, in bytes | 186 * @return The size of the log, in bytes |
176 */ | 187 */ |
182 * @param name The name of the log | 193 * @param name The name of the log |
183 * @param account The account | 194 * @param account The account |
184 * @return The size in bytes | 195 * @return The size in bytes |
185 */ | 196 */ |
186 int gaim_log_get_total_size(const char *name, GaimAccount *account); | 197 int gaim_log_get_total_size(const char *name, GaimAccount *account); |
198 | |
199 /** | |
200 * Implements GCompareFunc | |
201 * | |
202 * @param y A GaimLog | |
203 * @param z Another GaimLog | |
204 * @return A value as specified by GCompareFunc | |
205 */ | |
206 gint gaim_log_compare(gconstpointer y, gconstpointer z); | |
207 | |
187 /****************************************** | 208 /****************************************** |
188 ** LOGGER FUNCTIONS ********************** | 209 ** LOGGER FUNCTIONS ********************** |
189 ******************************************/ | 210 ******************************************/ |
190 | 211 |
191 /** | 212 /** |