aboutsummaryrefslogtreecommitdiff
path: root/snag/src/package.h
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-07-23 15:34:43 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-07-23 15:34:43 -0400
commit9282991429a92d6df17213acdc49fe687f42da6c (patch)
tree0e7ca7f74ba0c8b445956eab4d47545e0adcf407 /snag/src/package.h
parentd9bc99629dd3f8624df98ead06f400c4ffb3880b (diff)
download db is now source db, ready to start build
Diffstat (limited to 'snag/src/package.h')
-rw-r--r--snag/src/package.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/snag/src/package.h b/snag/src/package.h
index a96c5c1..54009c1 100644
--- a/snag/src/package.h
+++ b/snag/src/package.h
@@ -3,8 +3,12 @@
#include <stdbool.h>
-// this struct is the "handle" of a package to be passed into other package
-// functions
+typedef struct {
+ char* name;
+ char* url;
+ char* checksum;
+} source_info_t;
+
typedef struct {
char* script_path;
struct {
@@ -15,8 +19,7 @@ typedef struct {
char* webpage;
char* license;
char* version;
- char* source_url;
- char* source_checksum;
+ source_info_t source;
} attrs;
} package_info_t;