| 864 | } |
| 865 | |
| 866 | static void show_progress_json(hb_state_t * state) |
| 867 | { |
| 868 | hb_dict_t * state_dict; |
| 869 | char * state_json; |
| 870 | |
| 871 | state_dict = hb_state_to_dict(state); |
| 872 | state_json = hb_value_get_json(state_dict); |
| 873 | hb_value_free(&state_dict); |
| 874 | fprintf(stdout, "Progress: %s\n", state_json); |
| 875 | free(state_json); |
| 876 | fflush(stdout); |
| 877 | } |
| 878 | |
| 879 | static int HandleEvents(hb_handle_t * h, hb_dict_t *preset_dict) |
| 880 | { |
no test coverage detected