MCPcopy Create free account
hub / github.com/acl-dev/acl / dict_mapnames

Function dict_mapnames

lib_dict/src/dict_open.c:141–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139/* dict_mapnames - return an ARGV of available map_names */
140
141ACL_ARGV *dict_mapnames()
142{
143 const char *myname = "dict_mapnames";
144 ACL_HTABLE_INFO **ht_info;
145 ACL_HTABLE_INFO **ht;
146 DICT_OPEN_INFO *dp;
147 ACL_ARGV *mapnames;
148
149 if (dict_open_hash == 0)
150 acl_msg_fatal("%s: dict_open_init should be called first", myname);
151 mapnames = acl_argv_alloc(acl_htable_used(dict_open_hash) + 1);
152 for (ht_info = ht = acl_htable_list(dict_open_hash); *ht; ht++) {
153 dp = (DICT_OPEN_INFO *) ht[0]->value;
154 acl_argv_add(mapnames, dp->type, ACL_ARGV_END);
155 }
156 qsort((void *) mapnames->argv, mapnames->argc, sizeof(mapnames->argv[0]),
157 dict_sort_alpha_cpp);
158 acl_myfree(ht_info);
159 acl_argv_terminate(mapnames);
160 return mapnames;
161}

Callers

nothing calls this directly

Calls 6

acl_msg_fatalFunction · 0.85
acl_argv_allocFunction · 0.85
acl_htable_usedFunction · 0.85
acl_htable_listFunction · 0.85
acl_argv_addFunction · 0.85
acl_argv_terminateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…