| 850 | } |
| 851 | |
| 852 | static mi_response_t *w_mi_list_stats(const mi_params_t *params, |
| 853 | struct mi_handler *async_hdl) |
| 854 | { |
| 855 | mi_response_t *resp; |
| 856 | mi_item_t *resp_obj; |
| 857 | int i; |
| 858 | |
| 859 | resp = init_mi_result_object(&resp_obj); |
| 860 | if (!resp) |
| 861 | return 0; |
| 862 | |
| 863 | for( i=0 ; i<collector->mod_no ;i++ ) { |
| 864 | if (mi_list_module_stats(resp_obj, &collector->amodules[i] )!=0) { |
| 865 | free_mi_response(resp); |
| 866 | return 0; |
| 867 | } |
| 868 | } |
| 869 | |
| 870 | return resp; |
| 871 | } |
| 872 | |
| 873 | static mi_response_t *w_mi_list_stats_1(const mi_params_t *params, |
| 874 | struct mi_handler *async_hdl) |
nothing calls this directly
no test coverage detected