From: Adam Dickmeiss Date: Wed, 3 May 1995 07:36:29 +0000 (+0000) Subject: New functions: gw_res_bool and gw_res_int. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=069ba28943c0bcd5e592a28232a21df1294d1d3b;p=egate.git New functions: gw_res_bool and gw_res_int. --- diff --git a/include/gw-res.h b/include/gw-res.h index 1543649..32b7905 100644 --- a/include/gw-res.h +++ b/include/gw-res.h @@ -4,7 +4,10 @@ * Europagate, 1994-1995. * * $Log: gw-res.h,v $ - * Revision 1.4 1995/04/19 12:12:02 adam + * Revision 1.5 1995/05/03 07:36:29 adam + * New functions: gw_res_bool and gw_res_int. + * + * Revision 1.4 1995/04/19 12:12:02 adam * Resource system uses only one log debug level. * * Revision 1.3 1995/02/23 08:32:12 adam @@ -75,6 +78,17 @@ int gw_res_trav (GwRes id, const char *fname, void (*tf)(const char *name, the handler 'tf' is invoked with name and value. */ +int gw_res_bool (GwRes res, const char *name, int def_val); +/* + Return true(1) or false(0) depending on setting for name. If + name doesn't exist, def_val is returned + */ + +int gw_res_int (GwRes res, const char *name, int def_val); +/* + Treat value of name as integer. Issue warning (GW_LOG_WARN) if the value + cannot be read as integer. If name doesn't exist, def_val is returned + */ /* GwRes file format.