Implemeted CSV backend, add it to makefile, correct some errors in smart_records.c

This commit is contained in:
2020-07-26 11:52:14 +02:00
parent 7add1eb8e5
commit 22c5d9ea80
6 changed files with 28 additions and 20 deletions

View File

@@ -7,10 +7,10 @@
#define set_error_and_fails(x) { if (error) *error = strdup(x); goto failed; }
typedef struct smart_records_ctx_t {
void *CTX;
int (*set_format) (struct smart_records_ctx_t *ctx, char **error, const char *fmt);
int (*write_record) (struct smart_records_ctx_t *ctx, char **error, va_list ap);
int (*close_records_base) (struct smart_records_ctx_t *ctx);
void *backend_ctx;
int (*set_format) (void *ctx, char **error, const char *fmt);
int (*write_record) (void *ctx, char **error, va_list ap);
int (*close_records_base) (void *ctx);
} smart_records_ctx_t ;
#endif