| 277 | } |
| 278 | |
| 279 | int register_profiling_handler(profiling_handlers_t *handlers) |
| 280 | { |
| 281 | profiling_handlers_t *it; |
| 282 | |
| 283 | if (!handlers) |
| 284 | return -1; |
| 285 | |
| 286 | for (it = profiling_handlers; it; it = it->next) { |
| 287 | if (it == handlers) |
| 288 | return 0; |
| 289 | } |
| 290 | |
| 291 | handlers->next = profiling_handlers; |
| 292 | profiling_handlers = handlers; |
| 293 | return 0; |
| 294 | } |
| 295 | |
| 296 | void unregister_profiling_handler(profiling_handlers_t *handlers) |
| 297 | { |
no outgoing calls
no test coverage detected