diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-20 19:07:43 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-20 19:07:43 -0400 |
| commit | d598be66eddc0e925eee96e23d9f95c88cf1f6ed (patch) | |
| tree | 4edf80f0bdd7fab19e5f3a227da43ea0f3a8d0e1 /snag/pkg_db.h | |
| parent | e057a21962fe9e81b47cfd6b97fc4c6c2cb156b9 (diff) | |
split into separate file, readme clarifications
Diffstat (limited to 'snag/pkg_db.h')
| -rw-r--r-- | snag/pkg_db.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/snag/pkg_db.h b/snag/pkg_db.h new file mode 100644 index 0000000..e0f9a30 --- /dev/null +++ b/snag/pkg_db.h @@ -0,0 +1,19 @@ +#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 package data in +// bulk. + +typedef struct { + char* id; + char* name; + char* desc; + char* script_path; +} package_info_t; + +bool load_package_info(package_info_t* info, char* pkgid); + +#endif |
