Lines Matching refs:dconfig
9 static int assert_init(semanage_handle_t * handle, dbase_config_t * dconfig) in assert_init() argument
12 if (dconfig->dtable == NULL) { in assert_init()
24 static int enter_ro(semanage_handle_t * handle, dbase_config_t * dconfig) in enter_ro() argument
27 if (assert_init(handle, dconfig) < 0) in enter_ro()
39 if (dconfig->dtable->cache(handle, dconfig->dbase) < 0) in enter_ro()
61 static int enter_rw(semanage_handle_t * handle, dbase_config_t * dconfig) in enter_rw() argument
64 if (assert_init(handle, dconfig) < 0) in enter_rw()
72 if (dconfig->dtable->cache(handle, dconfig->dbase) < 0) in enter_rw()
83 dbase_config_t * dconfig, in dbase_modify() argument
87 if (enter_rw(handle, dconfig) < 0) in dbase_modify()
90 if (dconfig->dtable->modify(handle, dconfig->dbase, key, data) < 0) in dbase_modify()
97 dbase_config_t * dconfig, in dbase_set() argument
101 if (enter_rw(handle, dconfig) < 0) in dbase_set()
104 if (dconfig->dtable->set(handle, dconfig->dbase, key, data) < 0) in dbase_set()
111 dbase_config_t * dconfig, const record_key_t * key) in dbase_del() argument
114 if (enter_rw(handle, dconfig) < 0) in dbase_del()
117 if (dconfig->dtable->del(handle, dconfig->dbase, key) < 0) in dbase_del()
124 dbase_config_t * dconfig, in dbase_query() argument
128 if (enter_ro(handle, dconfig) < 0) in dbase_query()
131 if (dconfig->dtable->query(handle, dconfig->dbase, key, response) < 0) { in dbase_query()
140 dbase_config_t * dconfig, in dbase_exists() argument
144 if (enter_ro(handle, dconfig) < 0) in dbase_exists()
147 if (dconfig->dtable->exists(handle, dconfig->dbase, key, response) < 0) { in dbase_exists()
156 dbase_config_t * dconfig, unsigned int *response) in dbase_count() argument
159 if (enter_ro(handle, dconfig) < 0) in dbase_count()
162 if (dconfig->dtable->count(handle, dconfig->dbase, response) < 0) { in dbase_count()
171 dbase_config_t * dconfig, in dbase_iterate() argument
176 if (enter_ro(handle, dconfig) < 0) in dbase_iterate()
179 if (dconfig->dtable->iterate(handle, dconfig->dbase, fn, fn_arg) < 0) { in dbase_iterate()
188 dbase_config_t * dconfig, in dbase_list() argument
192 if (enter_ro(handle, dconfig) < 0) in dbase_list()
195 if (dconfig->dtable->list(handle, dconfig->dbase, records, count) < 0) { in dbase_list()