| 41 | |
| 42 | |
| 43 | static inline int load_sl_api( struct sl_binds *slb ) |
| 44 | { |
| 45 | load_sl_f load_sl; |
| 46 | |
| 47 | /* import the SL auto-loading function */ |
| 48 | if ( !(load_sl=(load_sl_f)find_export("load_sl", 0))) { |
| 49 | LM_ERR("can't import load_sl\n"); |
| 50 | return -1; |
| 51 | } |
| 52 | /* let the auto-loading function load all TM stuff */ |
| 53 | if (load_sl( slb )==-1) |
| 54 | return -1; |
| 55 | |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | |
| 60 | #endif |
no test coverage detected