MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / mod_init

Function mod_init

modules/cachedb_dynamodb/cachedb_dynamodb.c:220–247  ·  view source on GitHub ↗

* init module function */

Source from the content-addressed store, hash-verified

218 * init module function
219 */
220static int mod_init(void)
221{
222 LM_NOTICE("initializing cachedb_dynamodb module ...\n");
223 cachedb_engine cde;
224
225 memset(&cde, 0, sizeof cde);
226
227 cde.name = cache_mod_name;
228
229 cde.cdb_func.init = dynamodb_init;
230 cde.cdb_func.get = dynamodb_get;
231 cde.cdb_func.get_counter = dynamodb_get_counter;
232 cde.cdb_func.set = dynamodb_set;
233 cde.cdb_func.remove = dynamodb_remove;
234 cde.cdb_func.add = dynamodb_add;
235 cde.cdb_func.sub = dynamodb_sub;
236 cde.cdb_func.map_get = dynamodb_map_get;
237 cde.cdb_func.map_set = dynamodb_map_set;
238 cde.cdb_func.map_remove = dynamodb_map_remove;
239 cde.cdb_func.destroy = dynamodb_destroy;
240
241 if (register_cachedb(&cde)< 0)
242 {
243 LM_ERR("failed to register to core memory store interface\n");
244 return -1;
245 }
246 return 0;
247}
248
249static int child_init(int rank)
250{

Callers

nothing calls this directly

Calls 1

register_cachedbFunction · 0.85

Tested by

no test coverage detected