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.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