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

Function sipwatch_create_object

modules/lua/sipwatch.c:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35struct siplua_watch *siplua_watch;
36
37int sipwatch_create_object(void)
38{
39 siplua_watch = shm_malloc(sizeof(*siplua_watch));
40 if (!siplua_watch)
41 return -1;
42 memset(siplua_watch, '\0', sizeof(*siplua_watch));
43 if (!lock_init(&siplua_watch->lock))
44 return -1;
45 return 0;
46}
47
48void sipwatch_lock(void)
49{

Callers 1

mod_initFunction · 0.85

Calls 2

shm_mallocFunction · 0.85
lock_initFunction · 0.85

Tested by

no test coverage detected