return "(invalid)"; \
}
+static struct tdm_type_name tdm_error_names[] = {
+ { TDM_ERROR_NONE, "Success" },
+ { TDM_ERROR_BAD_REQUEST, "bad request" },
+ { TDM_ERROR_OPERATION_FAILED, "operaion failed" },
+ { TDM_ERROR_INVALID_PARAMETER, "wrong input parameter" },
+ { TDM_ERROR_PERMISSION_DENIED, "access denied" },
+ { TDM_ERROR_BUSY, "hardware resource busy" },
+ { TDM_ERROR_OUT_OF_MEMORY, "no free memory" },
+ { TDM_ERROR_BAD_MODULE, "bad backend module" },
+ { TDM_ERROR_NOT_IMPLEMENTED, "not implemented" },
+ { TDM_ERROR_NO_CAPABILITY, "no capability" },
+ { TDM_ERROR_DPMS_OFF, "dpms off" },
+ { TDM_ERROR_OUTPUT_DISCONNECTED, "output disconnected" },
+};
+TDM_TYPE_NAME_FN(error)
+
static struct tdm_type_name tdm_dpms_names[] = {
{ TDM_OUTPUT_DPMS_ON, "on" },
{ TDM_OUTPUT_DPMS_STANDBY, "standby" },