parser.h - rohrpost - A commandline mail client to change the world as we see it.
 (HTM) git clone git://r-36.net/rohrpost
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       parser.h (709B)
       ---
            1 /*
            2  * Copy me if you can.
            3  * by 20h
            4  */
            5 
            6 #ifndef __PARSER_H__
            7 #define __PARSER_H__
            8 
            9 #include "llist.h"
           10 
           11 typedef struct parser_t parser_t;
           12 struct parser_t {
           13         void *struc;
           14 
           15         int type;
           16         char *types;
           17 };
           18 
           19 parser_t *parser_new(char *type, void *struc);
           20 void parser_free(parser_t *parser);
           21 
           22 int parser_read(parser_t *parser, char *buf, int len);
           23 int parser_readall(parser_t *parser, char *buf, int len);
           24 
           25 char *parser_getuntil(parser_t *parser, void *str, int slen);
           26 char *parser_encodeplainlogin(char *user, char *pass);
           27 char *parser_encodestring(char *str);
           28 char *parser_parsesieve(parser_t *parser, char *ptr);
           29 char *parser_simplestring(char *str);
           30 llistelem_t *parser_parseimapstruct(parser_t *parser);
           31 
           32 #endif
           33