return -errno;
// Store a reference to the context
- a->ctx = pakfire_ctx(pakfire);
+ a->ctx = pakfire_get_ctx(pakfire);
// Store a reference to pakfire
a->pakfire = pakfire_ref(pakfire);
return -errno;
// Store a reference to the context
- self->ctx = pakfire_ctx(pakfire);
+ self->ctx = pakfire_get_ctx(pakfire);
// Store a reference to Pakfire
self->pakfire = pakfire_ref(pakfire);
struct pakfire_repo* local = NULL;
int r = 0;
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
// Fetch local repository
local = pakfire_get_repo(pakfire, PAKFIRE_REPO_LOCAL);
return -errno;
// Store a reference to the context
- self->ctx = pakfire_ctx(pakfire);
+ self->ctx = pakfire_get_ctx(pakfire);
// Store a reference to pakfire
self->pakfire = pakfire_ref(pakfire);
int r;
// Fetch context
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
// Create a new parser
r = pakfire_parser_create(parser, pakfire, NULL, NULL, PAKFIRE_PARSER_FLAGS_EXPAND_COMMANDS);
int r;
// Fetch context
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
// Load makefile
r = pakfire_read_makefile(&makefile, pakfire, path, &error);
return -errno;
// Store a reference to the context
- f->ctx = pakfire_ctx(pakfire);
+ f->ctx = pakfire_get_ctx(pakfire);
// Store reference to Pakfire
f->pakfire = pakfire_ref(pakfire);
return -errno;
// Store a reference to the context
- l->ctx = pakfire_ctx(pakfire);
+ l->ctx = pakfire_get_ctx(pakfire);
// Store a reference to Pakfire
l->pakfire = pakfire_ref(pakfire);
return -errno;
// Reference context
- self->ctx = pakfire_ctx(pakfire);
+ self->ctx = pakfire_get_ctx(pakfire);
// Reference Pakfire
self->pakfire = pakfire_ref(pakfire);
int r;
// Fetch the context
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
r = pakfire_path(pakfire, path, "%s", *argv);
if (r)
return -errno;
// Reference the context
- l->ctx = pakfire_ctx(pakfire);
+ l->ctx = pakfire_get_ctx(pakfire);
// Reference Pakfire
l->pakfire = pakfire_ref(pakfire);
int pakfire_oci_mkimage(struct pakfire* pakfire, FILE* f) {
struct pakfire_oci_writer writer = {
- .ctx = pakfire_ctx(pakfire),
+ .ctx = pakfire_get_ctx(pakfire),
.pakfire = pakfire,
};
int r;
return -errno;
// Store a reference to the context
- pkg->ctx = pakfire_ctx(pakfire);
+ pkg->ctx = pakfire_get_ctx(pakfire);
// Store a reference to Pakfire
pkg->pakfire = pakfire_ref(pakfire);
}
// Fetch the context
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
// Allocate a new solvable
Id id = pakfire_repo_add_solvable(repo);
p->nrefs = 1;
// Store a reference to the context
- p->ctx = pakfire_ctx(pakfire);
+ p->ctx = pakfire_get_ctx(pakfire);
// Store a reference to Pakfire
p->pakfire = pakfire_ref(pakfire);
return NULL;
}
-struct pakfire_ctx* pakfire_ctx(struct pakfire* pakfire) {
+struct pakfire_ctx* pakfire_get_ctx(struct pakfire* pakfire) {
return pakfire_ctx_ref(pakfire->ctx);
}
// Snapshots
int pakfire_update_snapshot(struct pakfire* pakfire);
-struct pakfire_ctx* pakfire_ctx(struct pakfire* pakfire);
+struct pakfire_ctx* pakfire_get_ctx(struct pakfire* pakfire);
const char* pakfire_get_effective_arch(struct pakfire* pakfire);
return -errno;
// Store a reference to the context
- self->ctx = pakfire_ctx(pakfire);
+ self->ctx = pakfire_get_ctx(pakfire);
// Store a reference to Pakfire
self->pakfire = pakfire_ref(pakfire);
};
// Fetch context
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
#ifdef ENABLE_DEBUG
DEBUG(ctx, "Parsing the following data (%zu):\n%.*s\n", len, (int)len, data);
return -errno;
// Store a reference to the context
- p->ctx = pakfire_ctx(pakfire);
+ p->ctx = pakfire_get_ctx(pakfire);
// Store a reference to Pakfire
p->pakfire = pakfire_ref(pakfire);
int count;
int r = -1;
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
r = subid_init(PACKAGE_NAME, stderr);
if (r) {
size_t length = 0;
char* p = NULL;
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
// Read the next line
while (1) {
if (!owner)
return 1;
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
DEBUG(ctx, "Fetching SUBID from %s for %s\n", path, owner);
return -errno;
// Store a reference to the context
- self->ctx = pakfire_ctx(pakfire);
+ self->ctx = pakfire_get_ctx(pakfire);
// Store a reference to Pakfire
self->pakfire = pakfire_ref(pakfire);
return -errno;
// Store a reference to the context
- self->ctx = pakfire_ctx(pakfire);
+ self->ctx = pakfire_get_ctx(pakfire);
// Store a reference to Pakfire
self->pakfire = pakfire_ref(pakfire);
}
// Fetch context
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
// XXX Check if the key is a secret key
int fd = -EBADF;
int r;
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
// Make the path
r = pakfire_cache_path(pakfire, path, "%s", "snapshots");
NULL,
};
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
// Fetch the configuration
config = pakfire_get_config(pakfire);
FTS* f = NULL;
int r;
- struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
+ struct pakfire_ctx* ctx = pakfire_get_ctx(pakfire);
DEBUG(ctx, "Cleaning up snapshots...\n");
return -errno;
// Store a reference to the context
- self->ctx = pakfire_ctx(pakfire);
+ self->ctx = pakfire_get_ctx(pakfire);
// Store a reference to Pakfire
self->pakfire = pakfire_ref(pakfire);
return -errno;
// Store a reference to the context
- t->ctx = pakfire_ctx(pakfire);
+ t->ctx = pakfire_get_ctx(pakfire);
// Store reference to Pakfire
t->pakfire = pakfire_ref(pakfire);