7/19
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "transaction.h"
|
||||
|
||||
typedef enum {
|
||||
INDEX,
|
||||
STORE
|
||||
@@ -58,6 +60,7 @@ typedef enum {
|
||||
struct gpkg_entry {
|
||||
char *repo;
|
||||
char *pkg;
|
||||
char *ver;
|
||||
};
|
||||
|
||||
struct gindex {
|
||||
@@ -71,21 +74,33 @@ bool gl_usr_istore_exists(index_store_t index_or_store, int uid);
|
||||
bool gl_sys_istore_exists(index_store_t index_or_store);
|
||||
|
||||
int gl_init_user(uid_t uid, bool isVerbose);
|
||||
int gl_init_sys(bool isVerbose);
|
||||
int gl_delete_user(uid_t uid, bool isVerbose);
|
||||
|
||||
int gl_parse_index(struct gindex *idx, FILE *f);
|
||||
void gl_free_index(struct gindex *idx);
|
||||
|
||||
int gl_rebuild_index(uid_t uid, const char *out_dir);
|
||||
int gl_rebuild_index(gl_context_t *ctx);
|
||||
|
||||
char *gl_find_pkg_repo(const char *pkg_name, uid_t uid);
|
||||
char *gl_find_pkg_repo(gl_context_t *ctx, const char *pkg_name);
|
||||
|
||||
typedef struct {
|
||||
char **repos;
|
||||
size_t count;
|
||||
}
|
||||
gl_repo_list_t;
|
||||
|
||||
gl_repo_list_t gl_find_pkg_repos(gl_context_t *ctx, const char *pkg_name);
|
||||
void gl_free_repo_list(gl_repo_list_t *list);
|
||||
|
||||
gl_backup_status_t gl_backup_istore(const char *tar_path, const char *glacier_root,
|
||||
const char *uid);
|
||||
gl_restore_status_t gl_restore_istore(const char *tar_path, const char *glacier_root, const char *uid);
|
||||
|
||||
gl_install_status_t gl_install_pkg(const char *gpkg_path, uid_t uid);
|
||||
gl_remove_status_t gl_remove_pkg(const char *pkg_name, const char *pkg_repo, uid_t uid);
|
||||
gl_install_status_t gl_install_pkg(gl_context_t *ctx, const char *gpkg_path);
|
||||
gl_remove_status_t gl_remove_pkg(gl_context_t *ctx, const char *pkg_name, const char *pkg_repo);
|
||||
|
||||
int gl_relink_store(gl_context_t *ctx);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user