rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | README | LICENSE

cfg.h (807B)


      1 /*
      2  * Copy me if you can.
      3  * by 20h
      4  */
      5 
      6 #ifndef __CFG_H__
      7 #define __CFG_H__
      8 
      9 #include "llist.h"
     10 #include "txtdb.h"
     11 
     12 /* For CONFIGFILE see ind.h */
     13 
     14 #define config_t txtdb_t
     15 
     16 #define config_new txtdb_new
     17 #define config_free txtdb_free
     18 #define config_add txtdb_add
     19 #define config_del txtdb_del
     20 #define config_get txtdb_get
     21 #define config_find txtdb_find
     22 #define config_set txtdb_set
     23 #define config_len txtdb_len
     24 #define config_read txtdb_read
     25 #define config_write txtdb_write
     26 llistelem_t *config_checkget(config_t *cfg, char *key);
     27 
     28 char *config_getstr(config_t *cfg, char *key);
     29 char *config_checkgetstr(config_t *cfg, char *key);
     30 
     31 config_t *config_init(char *cfgn);
     32 void config_stop(config_t *cfg);
     33 void config_default(char *cfgn);
     34 void config_list(void);
     35 
     36 int configmain(int argc, char *argv[]);
     37 
     38 #endif
     39