aboutsummaryrefslogtreecommitdiff
path: root/snag/src/package.h
diff options
context:
space:
mode:
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;