* Load all installed protocol decoders. * * @return SRD_OK upon success, a (negative) error code otherwise. * * @since 0.1.0 */
| 1133 | * @since 0.1.0 |
| 1134 | */ |
| 1135 | SRD_API int srd_decoder_load_all(void) |
| 1136 | { |
| 1137 | GSList *l; |
| 1138 | |
| 1139 | if (!srd_check_init()) |
| 1140 | return SRD_ERR; |
| 1141 | |
| 1142 | for (l = searchpaths; l; l = l->next){ |
| 1143 | srd_decoder_load_all_path(l->data); |
| 1144 | } |
| 1145 | |
| 1146 | return SRD_OK; |
| 1147 | } |
| 1148 | |
| 1149 | static void srd_decoder_unload_cb(void *arg, void *ignored) |
| 1150 | { |
no test coverage detected