dc_validate_global_state
if (dc_validate_global_state(dc, dm_state->context) != DC_OK) {
enum dc_status dc_validate_global_state(