-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathagent.h
More file actions
27 lines (22 loc) · 766 Bytes
/
agent.h
File metadata and controls
27 lines (22 loc) · 766 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
#ifndef cb_agent_h
#define cb_agent_h
#include <stddef.h>
#include <stdio.h>
#include "module.h"
#include "str.h"
#include "struct.h"
int cb_agent_init(void);
void cb_agent_deinit(void);
ssize_t cb_agent_intern_string(const char *str, size_t len);
ssize_t cb_agent_get_string_id(const char *str, size_t len);
cb_str cb_agent_get_string(size_t id);
void cb_agent_add_modspec(cb_modspec *spec);
size_t cb_agent_reserve_modspec_id();
void cb_agent_unreserve_modspec_id(size_t id);
const cb_modspec *cb_agent_get_modspec(size_t id);
cb_modspec *cb_agent_get_modspec_by_name(size_t name);
void cb_agent_clear_modspec(cb_modspec *spec);
size_t cb_agent_modspec_count(void);
FILE *cb_agent_resolve_import(cb_str import_name, const char *pwd,
char **path_out);
#endif