From dd7e73ec6c990c23a08d4e82f050804caa9789df Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sun, 21 Jun 2020 11:12:18 +0200 Subject: Benutze unterschiedliche Callback-Argumente für die Memory- und Error-Callback-Handler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- csv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'csv.h') diff --git a/csv.h b/csv.h index 3a529b7..fe59f5b 100644 --- a/csv.h +++ b/csv.h @@ -11,11 +11,14 @@ extern "C" { typedef struct { char quote_symbol; char sep_symbol; - void *cb_arg; + void (*cb_error)(const char *, void *); + void *cb_error_arg; + void *(*cb_allocate)(size_t, size_t, void *); void *(*cb_reallocate)(void *, size_t, size_t, void *); void (*cb_free)(void *, size_t sz, void *); + void *cb_memory_arg; } csv_options_t; extern const csv_options_t csv_default_options; -- cgit v1.3