#ifndef PKG_DB_H #define PKG_DB_H #include // 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; } 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); #endif