aboutsummaryrefslogtreecommitdiff
path: root/src/modules.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-20 15:22:41 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-20 15:22:41 -0400
commitefb3aae55908cb88f5a9c900d6563603ab792d6a (patch)
treece4293828ab43de4e6440bed0accf871a2d82f94 /src/modules.h
parent3d313c5956510a807c2ce7d1ffd9c3bfbb708444 (diff)
Add more advanced configuration options to modules.ini and support
automatically downloading and installing from it.
Diffstat (limited to 'src/modules.h')
-rw-r--r--src/modules.h14
1 files changed, 14 insertions, 0 deletions
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 <stdbool.h>
+
+#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