From fa4344e5dedff14af2bce55d29a272495dd6bbb5 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Thu, 23 Jul 2026 12:23:40 -0400 Subject: cache downloads and cleaning --- snag/src/package.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'snag/src/package.h') 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 -- cgit v1.2.3