| 93 | typedef int (*ebr_bind_f)(ebr_api_t *api); |
| 94 | |
| 95 | static inline int load_ebr_api(ebr_api_t *api) |
| 96 | { |
| 97 | ebr_bind_f ebr_bind; |
| 98 | |
| 99 | ebr_bind = (ebr_bind_f)find_export("ebr_bind", 0); |
| 100 | if (!ebr_bind) { |
| 101 | LM_ERR("failed to bind EBR API\n"); |
| 102 | return -1; |
| 103 | } |
| 104 | |
| 105 | ebr_bind(api); |
| 106 | return 0; |
| 107 | } |
| 108 | |
| 109 | #endif /* __EBR_API_H__ */ |
no test coverage detected