1 #ifndef _konf_query_h 2 #define _konf_query_h 3 4 #include <lub/types.h> 5 6 typedef enum 7 { 8 KONF_QUERY_OP_NONE, 9 KONF_QUERY_OP_OK, 10 KONF_QUERY_OP_ERROR, 11 KONF_QUERY_OP_SET, 12 KONF_QUERY_OP_UNSET, 13 KONF_QUERY_OP_STREAM, 14 KONF_QUERY_OP_DUMP 15 } konf_query_op_e; 16 17 typedef struct konf_query_s konf_query_t; 18 19 konf_query_t *konf_query_new(void); 20 void konf_query_free(konf_query_t *instance); 21 int konf_query_parse(konf_query_t *instance, int argc, char **argv); 22 int konf_query_parse_str(konf_query_t *instance, char *str); 23 void konf_query_dump(konf_query_t *instance); 24 25 char *konf_query__get_pwd(konf_query_t *instance, unsigned index); 26 int konf_query__get_pwdc(konf_query_t *instance); 27 konf_query_op_e konf_query__get_op(konf_query_t *instance); 28 char * konf_query__get_path(konf_query_t *instance); 29 const char * konf_query__get_pattern(konf_query_t *instance); 30 const char * konf_query__get_line(konf_query_t *instance); 31 unsigned short konf_query__get_priority(konf_query_t *instance); 32 bool_t konf_query__get_splitter(konf_query_t *instance); 33 bool_t konf_query__get_seq(konf_query_t *instance); 34 unsigned short konf_query__get_seq_num(konf_query_t *instance); 35 bool_t konf_query__get_unique(konf_query_t *instance); 36 int konf_query__get_depth(konf_query_t *instance); 37 38 #endif 39