Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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;
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,
#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 */