#include <log.h>
Data Fields | |
| char * | name |
| The logger's name. | |
| char * | id |
| an identifier to refer to this logger | |
| void(* | create )(GaimLog *log) |
| This gets called when the log is first created. | |
| void(* | write )(GaimLog *log, GaimMessageFlags type, const char *from, time_t time, const char *message) |
| This is used to write to the log file. | |
| void(* | finalize )(GaimLog *log) |
| Called when the log is destroyed. | |
| GList *(* | list )(GaimLogType type, const char *name, GaimAccount *account) |
| This function returns a sorted GList of available GaimLogs. | |
| char *(* | read )(GaimLog *log, GaimLogReadFlags *flags) |
| Given one of the logs returned by the logger's list function, this returns the contents of the log in GtkIMHtml markup. | |
| int(* | size )(GaimLog *log) |
| Given one of the logs returned by the logger's list function, this returns the size of the log in bytes. | |
| int(* | total_size )(GaimLogType type, const char *name, GaimAccount *account) |
| Returns the total size of all the logs. | |
| GList *(* | list_syslog )(GaimAccount *account) |
| This function returns a sorted GList of available system GaimLogs. | |
This struct gets filled out and is included in the GaimLog. It contains everything needed to write and read from logs.
| void(* _GaimLogLogger::create)(GaimLog *log) |
This gets called when the log is first created.
I don't think this is actually needed.
| int(* _GaimLogLogger::total_size)(GaimLogType type, const char *name, GaimAccount *account) |
Returns the total size of all the logs.
If this is undefined a default implementation is used
1.5.1