-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmii.h
More file actions
42 lines (30 loc) · 916 Bytes
/
mii.h
File metadata and controls
42 lines (30 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef MII_H
#define MII_H
#define MII_VERSION "1.0.4"
/*
* mii interface
*/
#include "modtable.h"
#include "search_result.h"
/* options should be set BEFORE mii_init() is called */
void mii_option_modulepath(const char* modulepath);
void mii_option_datadir(const char* datadir);
void mii_option_ignore_paths(const char* paths);
void mii_option_ignore_modules(const char* modules);
int mii_init();
void mii_free();
/* rebuild the entire cache */
int mii_build();
/* time-based cache sync, updates out-of-date modules */
int mii_sync();
/* list modules */
int mii_list();
/* search operations output a JSON result to stdout */
int mii_search_exact(mii_search_result* res, const char* cmd);
int mii_search_fuzzy(mii_search_result* res, const char* cmd);
int mii_search_info(mii_search_result* res, const char* code);
/* status operations */
int mii_enable();
int mii_disable();
int mii_status();
#endif