| 100 | }; |
| 101 | |
| 102 | static int mod_init(void) |
| 103 | { |
| 104 | cJSON_Hooks hooks; |
| 105 | |
| 106 | if (fs_ipc_init() != 0) { |
| 107 | LM_ERR("failed to init IPC, oom?\n"); |
| 108 | return -1; |
| 109 | } |
| 110 | |
| 111 | if (fs_api_init() != 0) { |
| 112 | LM_ERR("failed to init API internals, oom?\n"); |
| 113 | return -1; |
| 114 | } |
| 115 | |
| 116 | hooks.malloc_fn = osips_pkg_malloc; |
| 117 | hooks.free_fn = osips_pkg_free; |
| 118 | cJSON_InitHooks(&hooks); |
| 119 | |
| 120 | return 0; |
| 121 | } |
nothing calls this directly
no test coverage detected