]> git.ipfire.org Git - pakfire.git/commitdiff
oci: Require the context
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Jun 2025 12:59:59 +0000 (12:59 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Jun 2025 12:59:59 +0000 (12:59 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/lib/image_create.c
src/pakfire/oci.c
src/pakfire/oci.h

index b3fd2c3445fba31a2cf1a2dfe69fe45e49939dc6..852429eba51d7e4f5c8f96fe598d44320c1a68ec 100644 (file)
@@ -97,7 +97,7 @@ int cli_image_create(void* data, int argc, char* argv[]) {
                        goto ERROR;
 
                // Create the image
-               r = pakfire_oci_mkimage(root, f);
+               r = pakfire_oci_mkimage(global_args->ctx, root, f);
                if (r < 0)
                        goto ERROR;
 
index 678f7cc0b009433cc1100b946aa8976eb5bb4df0..4355425a672a76d6f7e086eaa7ddd1c38f6a4840 100644 (file)
@@ -555,7 +555,7 @@ ERROR:
        return r;
 }
 
-int pakfire_oci_mkimage(pakfire_root* root, FILE* f) {
+int pakfire_oci_mkimage(pakfire_ctx* ctx, pakfire_root* root, FILE* f) {
        struct pakfire_oci_writer writer = {
                .ctx  = pakfire_root_get_ctx(root),
                .root = root,
index 98b2c528d4ac18cd3a09005bebc7edf9adc19609..3b9274790d050cb57542f4b184fb8aea195aa8c6 100644 (file)
@@ -23,8 +23,9 @@
 
 #include <stdio.h>
 
+#include <pakfire/ctx.h>
 #include <pakfire/root.h>
 
-int pakfire_oci_mkimage(pakfire_root* root, FILE* f);
+int pakfire_oci_mkimage(pakfire_ctx* ctx, pakfire_root* root, FILE* f);
 
 #endif /* PAKFIRE_OCI_H */