| 35 | struct siplua_watch *siplua_watch; |
| 36 | |
| 37 | int 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 | |
| 48 | void sipwatch_lock(void) |
| 49 | { |
no test coverage detected