Go to the source code of this file.
◆ _GNU_SOURCE
◆ amxo_parser_clean_resolvers()
Definition at line 103 of file amxo_resolver_mngr.c.
104 amxc_htable_it_t* hit_data = NULL;
105 amxc_htable_it_t* hit_resolver = NULL;
109 hit_data = amxc_htable_get_first(parser->
resolvers);
111 const char* key = amxc_htable_it_get_key(hit_data);
113 hit_resolver = amxc_htable_get(&
resolvers, key);
114 resolver = amxc_htable_it_get_data(hit_resolver,
amxo_resolver_t, hit);
115 if(resolver->
clean != NULL) {
118 hit_data = amxc_htable_get_first(parser->
resolvers);
static amxc_htable_t resolvers
amxc_htable_t * resolvers
amxo_res_clean_fn_t clean
◆ amxo_parser_get_resolvers()
amxc_htable_t* amxo_parser_get_resolvers |
( |
void |
| ) |
|
◆ amxo_parser_init_resolvers()
◆ amxo_parser_resolve()
int amxo_parser_resolve |
( |
amxo_parser_t * |
parser, |
|
|
const char * |
resolver_name, |
|
|
const char * |
func_name, |
|
|
amxo_fn_type_t |
type, |
|
|
const char * |
data |
|
) |
| |
Definition at line 63 of file amxo_resolver_mngr.c.
70 amxc_htable_it_t* hit = NULL;
71 amxc_string_t res_name;
72 amxc_string_init(&res_name, 0);
74 if(amxc_string_set_resolved(&res_name, resolver_name, &parser->
config) > 0) {
75 resolver_name = amxc_string_get(&res_name, 0);
78 hit = amxc_htable_get(&
resolvers, resolver_name);
81 parser->
status = amxd_status_ok;
88 if(parser->
status == amxd_status_ok) {
95 amxc_string_clean(&res_name);
amxo_fn_ptr_t resolved_fn
amxo_res_resolve_fn_t resolve
◆ CONSTRUCTOR_LVL()
◆ DESTRUCTOR_LVL()
◆ resolvers