This repository has been archived on 2026-02-22. You can view files and clone it, but cannot push or open issues/pull-requests.
1 changed files with
24 additions and
0 deletions
|
|
|
|
@ -0,0 +1,24 @@
|
|
|
|
|
#ifndef CIETER_REPO
|
|
|
|
|
#define CIETER_REPO
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Represents & managing a group of repositories, each containing one or more
|
|
|
|
|
* arch-repositories.
|
|
|
|
|
*/
|
|
|
|
|
typedef struct CtrRepoGroup {
|
|
|
|
|
char *repos_dir;
|
|
|
|
|
char *pkg_dir;
|
|
|
|
|
char *default_arch;
|
|
|
|
|
} CtrRepoGroup;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Initialize a new CieterRepoGroup
|
|
|
|
|
*/
|
|
|
|
|
CtrRepoGroup *ctr_repo_group_init();
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Add a new package to the given repository by providing its path.
|
|
|
|
|
*/
|
|
|
|
|
void ctr_repo_group_add_from_path(CtrRepoGroup *crg, const char *repo, const char *path);
|
|
|
|
|
|
|
|
|
|
#endif
|