initializes statically built (compiled in) modules*/
| 102 | |
| 103 | /* initializes statically built (compiled in) modules*/ |
| 104 | int register_builtin_modules(void) |
| 105 | { |
| 106 | int ret; |
| 107 | |
| 108 | ret=0; |
| 109 | #ifdef STATIC_TM |
| 110 | ret=register_module(&tm_exports,"built-in", 0); |
| 111 | if (ret<0) return ret; |
| 112 | #endif |
| 113 | |
| 114 | #ifdef STATIC_EXEC |
| 115 | ret=register_module(&exec_exports,"built-in", 0); |
| 116 | if (ret<0) return ret; |
| 117 | #endif |
| 118 | |
| 119 | #ifdef STATIC_MAXFWD |
| 120 | ret=register_module(&maxfwd_exports, "built-in", 0); |
| 121 | if (ret<0) return ret; |
| 122 | #endif |
| 123 | |
| 124 | #ifdef STATIC_AUTH |
| 125 | ret=register_module(&auth_exports, "built-in", 0); |
| 126 | if (ret<0) return ret; |
| 127 | #endif |
| 128 | |
| 129 | #ifdef STATIC_RR |
| 130 | ret=register_module(&rr_exports, "built-in", 0); |
| 131 | if (ret<0) return ret; |
| 132 | #endif |
| 133 | |
| 134 | #ifdef STATIC_USRLOC |
| 135 | ret=register_module(&usrloc_exports, "built-in", 0); |
| 136 | if (ret<0) return ret; |
| 137 | #endif |
| 138 | |
| 139 | #ifdef STATIC_SL |
| 140 | ret=register_module(&sl_exports, "built-in", 0); |
| 141 | if (ret<0) return ret; |
| 142 | #endif |
| 143 | |
| 144 | return ret; |
| 145 | } |
| 146 | |
| 147 | /* registers a module, register_f= module register functions |
| 148 | * returns <0 on error, 0 on success */ |
no test coverage detected