X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Flogfile.h;h=6c246e222cfb346e18014c14588a3964a6824f24;hb=HEAD;hp=d229f6ea9954168405ba59fa0d8244711832d7e2;hpb=3ab887b9bc819a846c75dd7f2ee5d41fac22b19f;p=debian%2Famanda diff --git a/server-src/logfile.h b/server-src/logfile.h index d229f6e..6c246e2 100644 --- a/server-src/logfile.h +++ b/server-src/logfile.h @@ -1,6 +1,7 @@ /* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 1991-1998 University of Maryland at College Park + * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved. * All Rights Reserved. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -25,7 +26,7 @@ * University of Maryland at College Park */ /* - * $Id: logfile.h,v 1.6.8.1.2.1 2002/02/10 03:31:53 jrjackson Exp $ + * $Id: logfile.h,v 1.13 2006/05/25 01:47:20 johnfranks Exp $ * * interface to logfile module */ @@ -46,16 +47,20 @@ typedef enum logtype_e { L_ERROR, L_WARNING, L_INFO, L_SUMMARY, /* information messages */ L_START, L_FINISH, /* start/end of run */ L_DISK, /* disk */ - L_SUCCESS, L_FAIL, L_STRANGE, /* the end of a dump */ + /* End of a dump: */ + L_DONE, L_PART, L_PARTPARTIAL, L_SUCCESS, L_PARTIAL, L_FAIL, L_STRANGE, + L_CHUNK, L_CHUNKSUCCESS, /* ... continued */ L_STATS, /* statistics */ L_MARKER, /* marker for reporter */ L_CONT /* continuation line, used when reading */ } logtype_t; typedef enum program_e { - P_UNKNOWN, P_PLANNER, P_DRIVER, P_REPORTER, P_DUMPER, P_TAPER, P_AMFLUSH + P_UNKNOWN, P_PLANNER, P_DRIVER, P_REPORTER, P_DUMPER, P_CHUNKER, + P_TAPER, P_AMFLUSH, P_AMDUMP, P_AMIDXTAPED, P_AMFETCHDUMP, P_AMCHECKDUMP, + P_AMVAULT, P_SENTINEL } program_t; -#define P_LAST P_AMFLUSH +#define P_LAST (P_SENTINEL-1) extern char *logtype_str[]; @@ -65,12 +70,12 @@ extern program_t curprog; extern char *curstr; extern char *program_str[]; -void logerror P((char *)); -void log_add P((logtype_t typ, char * format, ...)) - __attribute__ ((format (printf, 2, 3))); -void log_start_multiline P((void)); -void log_end_multiline P((void)); -void log_rename P((char *datestamp)); -int get_logline P((FILE *)); +void amanda_log_trace_log(GLogLevelFlags log_level, const gchar *message); +void log_add(logtype_t typ, char * format, ...) G_GNUC_PRINTF(2, 3); +void log_add_full(logtype_t typ, char *pname, char *format, ...) G_GNUC_PRINTF(3, 4); +void log_start_multiline(void); +void log_end_multiline(void); +void log_rename(char *datestamp); +int get_logline(FILE *); #endif /* ! LOGFILE_H */