| 196 | typedef int(*load_b2b_f) (b2b_api_t* api); |
| 197 | |
| 198 | static inline int load_b2b_api( struct b2b_api *b2b_api) |
| 199 | { |
| 200 | load_b2b_f load_b2b; |
| 201 | |
| 202 | /* import the b2b_entities auto-loading function */ |
| 203 | if ( !(load_b2b=(load_b2b_f)find_export("load_b2b", 0))) { |
| 204 | LM_ERR("can't import load_b2b\n"); |
| 205 | return -1; |
| 206 | } |
| 207 | |
| 208 | /* let the auto-loading function load all B2B entities stuff */ |
| 209 | return load_b2b( b2b_api ); |
| 210 | } |
| 211 | |
| 212 | #define run_b2be_api(_b2b_api, _api_func, _args...) \ |
| 213 | ({ \ |
no test coverage detected