| 137 | |
| 138 | |
| 139 | static int mod_init(void) |
| 140 | { |
| 141 | LM_INFO("initializing...\n"); |
| 142 | |
| 143 | if (use_received) { |
| 144 | if (load_rr_api(&path_rrb) != 0) { |
| 145 | LM_ERR("failed to load rr-API\n"); |
| 146 | return -1; |
| 147 | } |
| 148 | if (path_rrb.register_rrcb(path_rr_callback, 0, 0) != 0) { |
| 149 | LM_ERR("failed to register rr callback\n"); |
| 150 | return -1; |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | return 0; |
| 155 | } |
| 156 | |
| 157 | |
| 158 | static void destroy(void) |
nothing calls this directly
no test coverage detected