diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-21 10:18:22 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-21 10:18:22 -0400 |
| commit | 8b82a228ef754778caec172f5882e80ae57f536b (patch) | |
| tree | 738269bfe54f1531fdde0d807f8fc6aab6e10302 /snag/pkg_db.h | |
| parent | ea598e719d557a876a52d0cbecb21c1fb8ff917f (diff) | |
clean up buffer, and add function to run install script
Diffstat (limited to 'snag/pkg_db.h')
| -rw-r--r-- | snag/pkg_db.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/snag/pkg_db.h b/snag/pkg_db.h index 464380b..0a67043 100644 --- a/snag/pkg_db.h +++ b/snag/pkg_db.h @@ -4,21 +4,21 @@ #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. - +// 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; - char package_attrs[4069]; package_attrs_t attrs; } package_info_t; -bool load_package_info(package_info_t* info, char* pkgid); +bool load_package_info(char* pkgid, package_info_t* info); +void run_package_install(const package_info_t* info); #endif |
