Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/log.h Sat Apr 03 18:01:58 2004 +0000 +++ b/src/log.h Sat Apr 03 18:34:29 2004 +0000 @@ -87,6 +87,9 @@ /** Returns the total size of all the logs. If this is undefined a default * implementation is used */ int (*total_size)(const char *name, GaimAccount *account); + + /** This function returns a sorted GList of available system GaimLogs */ + GList *(*list_syslog)(GaimAccount *account); }; /** @@ -169,6 +172,14 @@ GList *gaim_log_get_logs(const char *name, GaimAccount *account); /** + * Returns a list of all available system logs + * + * @param account The account + * @return A sorted list of GaimLogs + */ + GList *gaim_log_get_system_logs(GaimAccount *account); + + /** * Returns the size of a log * * @param log The log @@ -184,6 +195,16 @@ * @return The size in bytes */ int gaim_log_get_total_size(const char *name, GaimAccount *account); + + /** + * Implements GCompareFunc + * + * @param y A GaimLog + * @param z Another GaimLog + * @return A value as specified by GCompareFunc + */ + gint gaim_log_compare(gconstpointer y, gconstpointer z); + /****************************************** ** LOGGER FUNCTIONS ********************** ******************************************/