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

mark.h (824B)


      1 /*
      2  * Copy me if you can.
      3  * by 20h
      4  */
      5 
      6 #ifndef __MARK_H__
      7 #define __MARK_H__
      8 
      9 #include "llist.h"
     10 #include "txtdb.h"
     11 #include "cfg.h"
     12 
     13 #define mark_t txtdb_t
     14 
     15 #define mark_new txtdb_new
     16 #define mark_add txtdb_add
     17 #define mark_del txtdb_del
     18 #define mark_find txtdb_find
     19 #define mark_len txtdb_len
     20 #define mark_read txtdb_read
     21 #define mark_write txtdb_write
     22 
     23 mark_t *mark_init(char *cfgn, char *mailbox);
     24 void mark_free(mark_t *marks);
     25 mark_t *mark_cfg(config_t *cfg);
     26 void mark_stop(mark_t *marks);
     27 
     28 llistelem_t *mark_set(mark_t *marks, char *seq, char *value);
     29 llistelem_t *mark_get(mark_t *marks, char *seq);
     30 llist_t *mark_getlist(mark_t *marks, char *seq);
     31 char *mark_getstr(mark_t *marks, char *seq);
     32 
     33 void mark_printelem(llistelem_t *elem, int onlynames, int onlyvalue);
     34 
     35 int markmain(int argc, char *argv[]);
     36 
     37 #endif
     38