From 8d1b888703f29a62dde0c596bab3d5b08cbc4115 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 30 Mar 1995 07:32:42 +0000 Subject: [PATCH] New log-level: GW_LOG_NOTICE. New 2709 function: iso2709_mk. --- include/gw-log.h | 24 ++++++++++++++---------- include/iso2709.h | 6 +++++- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/include/gw-log.h b/include/gw-log.h index 7cf1afa..fbd9519 100644 --- a/include/gw-log.h +++ b/include/gw-log.h @@ -4,7 +4,10 @@ * Europagate, 1994-1995. * * $Log: gw-log.h,v $ - * Revision 1.5 1995/03/28 07:52:35 adam + * Revision 1.6 1995/03/30 07:32:42 adam + * New log-level: GW_LOG_NOTICE. New 2709 function: iso2709_mk. + * + * Revision 1.5 1995/03/28 07:52:35 adam * Bug fix: Bad log masks. * * Revision 1.4 1995/03/27 12:50:40 adam @@ -24,20 +27,21 @@ /* The log level is an unsigned integer value with at least 16 bits */ /* The log levels are defined below */ -#define GW_LOG_FATAL 0x01 -#define GW_LOG_WARN 0x02 -#define GW_LOG_ACCT 0x04 -#define GW_LOG_STAT 0x08 -#define GW_LOG_ERRNO 0x10 +#define GW_LOG_FATAL 0x01 +#define GW_LOG_WARN 0x02 +#define GW_LOG_ACCT 0x04 +#define GW_LOG_STAT 0x08 +#define GW_LOG_ERRNO 0x10 +#define GW_LOG_NOTICE 0x20 /* All debug levels */ -#define GW_LOG_DEBUG 0xffe0 -/* Individual debug levels, x sould be in range 0-10 */ -#define GW_LOG_DEBUGN(x) (0x20<<(x)) +#define GW_LOG_DEBUG 0xffc0 +/* Individual debug levels, x sould be in range 0-9 */ +#define GW_LOG_DEBUGN(x) (0x40<<(x)) /* All levels on / All levels except debugging */ #define GW_LOG_ALL 0xffef -#define GW_LOG_DEFAULT 0x0f +#define GW_LOG_DEFAULT 0x2f void gw_log_init (const char *app_name); /* diff --git a/include/iso2709.h b/include/iso2709.h index faa17fe..9c35d51 100644 --- a/include/iso2709.h +++ b/include/iso2709.h @@ -4,7 +4,10 @@ * Europagate, 1994-1995. * * $Log: iso2709.h,v $ - * Revision 1.9 1995/03/29 11:44:25 adam + * Revision 1.10 1995/03/30 07:32:46 adam + * New log-level: GW_LOG_NOTICE. New 2709 function: iso2709_mk. + * + * Revision 1.9 1995/03/29 11:44:25 adam * New functions: iso2709_a_.. for record manipulation. * * Revision 1.8 1995/03/28 16:06:42 adam @@ -42,6 +45,7 @@ typedef struct iso2709_anchor *Iso2709Anchor; char *iso2709_read (FILE *inf); Iso2709Rec iso2709_cvt (const char *buf); +Iso2709Rec iso2709_mk (void); void iso2709_rm (Iso2709Rec rec); void iso2709_display (Iso2709Rec rec, FILE *out); int iso2709_out (Iso2709Rec p, char **buf, int size); -- 1.7.10.4