| 41 | static void *__msg_ctx = NULL; |
| 42 | |
| 43 | void acl_msg_register(ACL_MSG_OPEN_FN open_fn, ACL_MSG_CLOSE_FN close_fn, |
| 44 | ACL_MSG_WRITE_FN write_fn, void *ctx) |
| 45 | { |
| 46 | if (open_fn == NULL || write_fn == NULL) |
| 47 | return; |
| 48 | |
| 49 | __open_fn = open_fn; |
| 50 | __close_fn = close_fn; |
| 51 | __write_fn = write_fn; |
| 52 | __msg_ctx = ctx; |
| 53 | } |
| 54 | |
| 55 | void acl_msg_unregister(void) |
| 56 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…