PAKFIRE_HAS_PATH = (1 << 0),
PAKFIRE_DESTROY_ON_FREE = (1 << 1),
PAKFIRE_UMOUNT_PATH = (1 << 2),
+ PAKFIRE_POOL_READY = (1 << 3),
} internal_flags;
// Lock
struct pakfire_snapshot* snapshot;
// States
- unsigned int pool_ready:1;
unsigned int in_free:1;
};
}
void pakfire_pool_has_changed(struct pakfire* pakfire) {
- pakfire->pool_ready = 0;
+ pakfire->internal_flags &= ~PAKFIRE_POOL_READY;
}
static int __pakfire_repo_internalize(struct pakfire* pakfire, struct pakfire_repo* repo,
int flags = 0;
// Nothing to do if the pool is ready
- if (pakfire->pool_ready)
+ if (pakfire->internal_flags & PAKFIRE_POOL_READY)
return;
// Internalize all repositories
pool_createwhatprovides(pakfire->pool);
// Mark the pool as ready
- pakfire->pool_ready = 1;
+ pakfire->internal_flags |= PAKFIRE_POOL_READY;
}
PAKFIRE_EXPORT struct pakfire_repolist* pakfire_get_repos(struct pakfire* pakfire) {