aboutsummaryrefslogtreecommitdiff
path: root/snag/src/package.h
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-07-23 12:23:40 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-07-23 12:23:40 -0400
commitfa4344e5dedff14af2bce55d29a272495dd6bbb5 (patch)
treeb90719263489365885a704bb4eab155c40c11d71 /snag/src/package.h
parente207f7382cf23dcf88700dead255a41c817a0863 (diff)
cache downloads and cleaning
Diffstat (limited to 'snag/src/package.h')
-rw-r--r--snag/src/package.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/snag/src/package.h b/snag/src/package.h
index b848ce6..bdbf0cb 100644
--- a/snag/src/package.h
+++ b/snag/src/package.h
@@ -1,21 +1,21 @@
#ifndef PACKAGE_H
#define PACKAGE_H
+// this struct is the "handle" of a package to be passed into other package
+// functions
typedef struct {
- char* id;
- char* name;
- char* desc;
- char* webpage;
- char* license;
- char* version;
- char* source_url;
- char* source_checksum;
- char buffer[4069];
-} package_attrs_t;
-
-typedef struct {
- char* script_path;
- package_attrs_t attrs;
+ char* script_path;
+ struct {
+ char buffer[4069];
+ char* id;
+ char* name;
+ char* desc;
+ char* webpage;
+ char* license;
+ char* version;
+ char* source_url;
+ char* source_checksum;
+ } attrs;
} package_info_t;
#endif