aboutsummaryrefslogtreecommitdiff
path: root/include/pkg.h
diff options
context:
space:
mode:
authordacctal <donotcontactmevia@email.invalid>2026-07-26 02:39:45 +0000
committerdacctal <donotcontactmevia@email.invalid>2026-07-26 02:39:45 +0000
commita017a140b912b40a6f61b3d918daa6e7554e65ed (patch)
tree19d2536e6e832856eb93bcb869d97cb1c0259119 /include/pkg.h
parent184bd50e2ea12b4bf40f4ae1b0d685f0bfa1c995 (diff)
fixed forever loop on lua initialization
Diffstat (limited to 'include/pkg.h')
-rw-r--r--include/pkg.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/pkg.h b/include/pkg.h
index 47d1918..2410710 100644
--- a/include/pkg.h
+++ b/include/pkg.h
@@ -4,21 +4,21 @@
#include "str.h"
struct package_t;
-typedef bool (*package_hook_cb_t)(struct package_t *self);
-typedef str (*package_version_cb_t)(struct package_t *self);
+typedef bool (*package_hook_cb_t)(struct package_t *pkg);
+typedef str (*package_version_cb_t)(struct package_t *pkg);
typedef struct package_t {
str name, version, url, src;
unsigned int dep_count;
bool is_local;
- package_hook_cb_t setup, build, install, rem, on_update, fetch_sources;
+ package_hook_cb_t setup, build, install, rm, on_update, fetch_sources;
package_version_cb_t fetch_latest_version;
} package_t;
-bool setup(package_t *self), build(package_t *self),
- install(package_t *self), rem(package_t *self),
- on_update(package_t *self),
- fetch_sources(package_t *self);
-str fetch_latest_version(package_t *self);
+bool setup(package_t *pkg), build(package_t *pkg),
+ install(package_t *pkg), rm(package_t *pkg),
+ on_update(package_t *pkg),
+ fetch_sources(package_t *pkg);
+str fetch_latest_version(package_t *pkg);
#endif