Commit c771ced5 authored by Shawn Webb's avatar Shawn Webb
Browse files

Add internalaux



We may want to store additional arbitrary data, specific to the
underlying implementation.

For example, when I implement libpushover-based logging, I'll want to
store a libpushover context object in the logger context. I don't want
that exposed to the application, though.
Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent 4078182f
......@@ -68,6 +68,8 @@ typedef struct _lllog {
char *ll_path;
void *ll_aux;
size_t ll_auxsz;
void *ll_internalaux;
size_t ll_internalauxsz;
log_cb ll_log_debug;
log_cb ll_log_err;
......@@ -85,6 +87,8 @@ typedef struct _lattutil_sql_ctx {
lattutil_log_t *lsq_logger;
void *lsq_aux;
size_t lsq_auxsz;
void *lsq_internalaux;
size_t lsq_internalauxsz;
} lattutil_sqlite_ctx_t;
typedef struct _lattutil_sql_res {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment