Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

_GaimLogLogger Struct Reference

A log logger. More...

#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 )(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 )(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.


Detailed Description

A log logger.

This struct gets filled out and is included in the GaimLog. It contains everything needed to write and read from logs.


Field Documentation

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)(const char *name, GaimAccount *account)
 

Returns the total size of all the logs.

If this is undefined a default implementation is used


The documentation for this struct was generated from the following file:
Generated on Tue Aug 3 17:36:46 2004 for gaim by doxygen 1.3.4