12#include "attributes.h"
17#define LOG_ID_INVALID -2
25int
shiplog_create( const
char *idstr, const
char *logname, const
char *type,
26 int overwrite,
int maxLen );
34 int logid, ntime_t when );
38int shiplog_save( xmlTextWriterPtr writer );
41void shiplog_listTypes(
int *ntypes,
char ***logTypes,
int includeAll );
43 int **logIDs,
int includeAll );
44int shiplog_getIdOfLogOfType( const
char *type,
int selectedLog );
46 char ***logentries,
int incempty );
void shiplog_new(void)
Set up the shiplog.
int shiplog_appendByID(int logid, const char *msg)
Adds to the log file.
int shiplog_load(xmlNodePtr parent)
Loads the logfiile.
void shiplog_listLog(int logid, const char *type, int *nentries, char ***logentries, int incempty)
Get all log entries matching logid, or if logid==LOG_ID_ALL, matching type, or if type==NULL,...
void shiplog_listLogsOfType(const char *type, int *nlogs, char ***logsOut, int **logIDs, int includeAll)
Lists matching logs (which haven't expired via "removeAfter") into the provided arrays.
void shiplog_clear(void)
Clear the shiplog.
void shiplog_delete(int logid)
Deletes a log (e.g. a cancelled mission may wish to do this, or the user might).
void shiplog_setRemove(int logid, ntime_t when)
Sets the remove flag for a log - it will be removed once time increases, eg after a player takes off.
int shiplog_append(const char *idstr, const char *msg)
Appends to the log file.
void shiplog_deleteType(const char *type)
Deletes all logs of given type.
int shiplog_create(const char *idstr, const char *logname, const char *type, int overwrite, int maxLen)
Creates a new log with given title of given type.
int shiplog_getID(const char *idstr)
Checks to see if the log family exists.