blob: 0a67043cff027d47ce769c606bc3e13b0ac57939 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef PKG_DB_H
#define PKG_DB_H
#include <stdbool.h>
// loads and allocates package attributes for the info struct. does not do
// excessive validation, so this should be fine when loading lots of package
// data
typedef struct {
char* id;
char* name;
char* desc;
char buffer[4069];
} package_attrs_t;
typedef struct {
char* script_path;
package_attrs_t attrs;
} package_info_t;
bool load_package_info(char* pkgid, package_info_t* info);
void run_package_install(const package_info_t* info);
#endif
|