From efb3aae55908cb88f5a9c900d6563603ab792d6a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 20 May 2025 15:22:41 -0400 Subject: Add more advanced configuration options to modules.ini and support automatically downloading and installing from it. --- src/modules.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/modules.h (limited to 'src/modules.h') diff --git a/src/modules.h b/src/modules.h new file mode 100644 index 00000000..36b05d3d --- /dev/null +++ b/src/modules.h @@ -0,0 +1,14 @@ +#pragma once + +#include + +#include "ast.h" + +typedef struct { + const char *name, *version, *url, *git, *revision, *path; +} module_info_t; + +module_info_t get_module_info(ast_t *use); +bool try_install_module(module_info_t mod); + +// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 -- cgit v1.2.3