int r;
// Create a new stripper
- r = pakfire_stripper_create(&stripper, build->root, build->jail, build->buildroot);
+ r = pakfire_stripper_create(&stripper,
+ build->ctx, build->root, build->jail, build->buildroot);
if (r < 0)
goto ERROR;
}
int pakfire_stripper_create(pakfire_stripper** stripper,
- pakfire_root* root, pakfire_jail* jail, const char* path) {
+ pakfire_ctx* ctx, pakfire_root* root, pakfire_jail* jail, const char* path) {
pakfire_stripper* self = NULL;
int r;
return -errno;
// Store a reference to the context
- self->ctx = pakfire_root_get_ctx(root);
+ self->ctx = pakfire_ctx_ref(ctx);
// Store a reference to the root
self->root = pakfire_root_ref(root);
typedef struct pakfire_stripper pakfire_stripper;
+#include <pakfire/ctx.h>
#include <pakfire/jail.h>
#include <pakfire/root.h>
int pakfire_stripper_create(pakfire_stripper** stripper,
- pakfire_root* root, pakfire_jail* jail, const char* path);
+ pakfire_ctx* ctx, pakfire_root* root, pakfire_jail* jail, const char* path);
pakfire_stripper* pakfire_stripper_ref(pakfire_stripper* self);
pakfire_stripper* pakfire_stripper_unref(pakfire_stripper* self);