46 int error; |
46 int error; |
47 char delimiter; |
47 char delimiter; |
48 char comment1; |
48 char comment1; |
49 char comment2; |
49 char comment2; |
50 char comment3; |
50 char comment3; |
51 } UcxPropParser; |
51 } UcxProperties; |
52 |
52 |
53 |
53 |
54 UcxPropParser *ucx_prop_new(); |
54 UcxProperties *ucx_properties_new(); |
55 void ucx_prop_free(UcxPropParser *parser); |
55 void ucx_properties_free(UcxProperties *parser); |
56 void ucx_prop_fill(UcxPropParser *parser, char *buf, size_t len); |
56 void ucx_properties_fill(UcxProperties *parser, char *buf, size_t len); |
57 int ucx_prop_parse(UcxPropParser *parser, sstr_t *name, sstr_t *value); |
57 int ucx_properties_next(UcxProperties *parser, sstr_t *name, sstr_t *value); |
58 int ucx_prop_parse2map(UcxPropParser *parser, UcxMap *map); |
58 int ucx_properties2map(UcxProperties *parser, UcxMap *map); |
59 |
59 |
60 int ucx_properties_load(UcxMap *map, FILE *file); |
60 int ucx_properties_load(UcxMap *map, FILE *file); |
61 int ucx_properties_store(UcxMap *map, FILE *file); |
61 int ucx_properties_store(UcxMap *map, FILE *file); |
62 |
62 |
63 #ifdef __cplusplus |
63 #ifdef __cplusplus |