code / tomo

Lines40.1K C23.5K Markdown9.5K YAML4.9K Tomo1.6K
7 others 735
Shell232 make207 Python205 INI48 Text21 SVG16 Lua6
(17 lines)
1 // Logic for getting information about and installing modules
3 #pragma once
5 #include <stdbool.h>
7 #include "ast.h"
9 typedef struct {
10 const char *name, *version, *url, *git, *revision, *path;
11 } module_info_t;
13 Text_t get_library_name(Path_t lib_dir);
14 const char *get_library_version(Path_t lib_dir);
15 module_info_t get_used_module_info(ast_t *use);
16 bool install_from_modules_ini(Path_t ini_file, bool ask_confirmation);
17 bool try_install_module(module_info_t mod, bool ask_confirmation);