Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
struct collecty_ctx {
int nrefs;
+
+ // Logging
+ struct {
+ int level;
+ } log;
};
static void collecty_ctx_free(collecty_ctx* ctx) {
collecty_ctx_free(ctx);
return NULL;
}
+
+/*
+ Logging
+*/
+void collecty_ctx_set_log_level(collecty_ctx* ctx, int level) {
+ ctx->log.level = level;
+}
collecty_ctx* collecty_ctx_ref(collecty_ctx* ctx);
collecty_ctx* collecty_ctx_unref(collecty_ctx* ctx);
+// Logging
+void collecty_ctx_set_log_level(collecty_ctx* ctx, int level);
+
#endif /* COLLECTY_CTX_H */