52 lines
956 B
C
52 lines
956 B
C
#pragma once
|
|
#include "url.h"
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <sys/types.h>
|
|
|
|
typedef struct lm_pkg_file {
|
|
char *path;
|
|
char *hash;
|
|
} lm_pkg_file_t;
|
|
|
|
typedef struct lm_pkg_path {
|
|
char *archive;
|
|
char *signature;
|
|
} lm_pkg_path_t;
|
|
|
|
typedef struct lm_pkg {
|
|
struct lm_pool *pool;
|
|
struct lm_pkg *next;
|
|
lm_pkg_path_t paths;
|
|
char *name;
|
|
char *desc;
|
|
char **depends;
|
|
char **keeps;
|
|
char *version;
|
|
size_t size;
|
|
} lm_pkg_t;
|
|
|
|
typedef struct lm_pool_info {
|
|
char *maintainer;
|
|
char *pubkey;
|
|
ssize_t size;
|
|
} lm_pool_info_t;
|
|
|
|
typedef struct lm_pool_path {
|
|
char *info_file;
|
|
char *list_file;
|
|
char *list_dir;
|
|
char *dir;
|
|
} lm_pool_path_t;
|
|
|
|
typedef struct lm_pool {
|
|
struct lm_pool *next;
|
|
lm_pool_info_t info;
|
|
lm_pool_path_t paths;
|
|
lm_url_t url;
|
|
lm_pkg_t *pkg;
|
|
char *name;
|
|
bool available, loaded;
|
|
} lm_pool_t;
|