]> git.ipfire.org Git - collecty.git/commitdiff
ctx: Create a dummy function to set the log level
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Sep 2025 11:12:50 +0000 (11:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Sep 2025 11:12:50 +0000 (11:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/ctx.c
src/daemon/ctx.h

index 8437989be4603c197260bffbaf6f7c06a40395be..72394e70eac9839aa2f54429c431fbdf5092dbc7 100644 (file)
 
 struct collecty_ctx {
        int nrefs;
+
+       // Logging
+       struct {
+               int level;
+       } log;
 };
 
 static void collecty_ctx_free(collecty_ctx* ctx) {
@@ -61,3 +66,10 @@ collecty_ctx* collecty_ctx_unref(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;
+}
index 454c9965d062e674119f49a749e5b8be43f08f2c..5dedd7ee95e52fa3cf0d78c2eb816d04f1d48d7d 100644 (file)
@@ -28,4 +28,7 @@ int collecty_ctx_create(collecty_ctx** ctx);
 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 */