* Get the current state of an hb instance as a json string * @param h - Pointer to an hb_handle_t hb instance */
| 154 | * @param h - Pointer to an hb_handle_t hb instance |
| 155 | */ |
| 156 | char* hb_get_state_json( hb_handle_t * h ) |
| 157 | { |
| 158 | hb_state_t state; |
| 159 | |
| 160 | hb_get_state(h, &state); |
| 161 | hb_dict_t *dict = hb_state_to_dict(&state); |
| 162 | |
| 163 | char *json_state = hb_value_get_json(dict); |
| 164 | hb_value_free(&dict); |
| 165 | |
| 166 | return json_state; |
| 167 | } |
| 168 | |
| 169 | hb_dict_t * hb_audio_attributes_to_dict(uint32_t attributes) |
| 170 | { |
nothing calls this directly
no test coverage detected