| 357 | }; |
| 358 | |
| 359 | static int module_find_hook(module * modp, hook_get_t hook_get) |
| 360 | { |
| 361 | int i; |
| 362 | apr_array_header_t *hooks = hook_get(); |
| 363 | hook_struct_t *elts; |
| 364 | |
| 365 | if (!hooks) { |
| 366 | return 0; |
| 367 | } |
| 368 | |
| 369 | elts = (hook_struct_t *) hooks->elts; |
| 370 | |
| 371 | for (i = 0; i < hooks->nelts; i++) { |
| 372 | if (strcmp(elts[i].szName, modp->name) == 0) { |
| 373 | return 1; |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | return 0; |
| 378 | } |
| 379 | |
| 380 | static void module_participate(request_rec * r, |
| 381 | module * modp, |
no outgoing calls
no test coverage detected