tdm_error (*output_set_dpms_handler)(tdm_output *output,
tdm_output_dpms_handler func,
void *user_data);
+
+ /**
+ * @brief Set DPMS of a output object asynchronously
+ * @param[in] output A output object
+ * @details This function can be NULL if an output doesn't support asynchronous
+ * DPMS control. Otherwise, an output should have #TDM_OUTPUT_CAPABILITY_ASYNC_DPMS
+ * flags which #output_get_capability returns. And if a output dpms handler is added with
+ * #output_set_dpms_handler, a backend module needs to call the output dpms handler
+ * to let the TDM frontend know the output DPMS change indeed.
+ * @param[in] dpms_value DPMS value
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ * @see #output_set_dpms_handler, #TDM_OUTPUT_CAPABILITY_ASYNC_DPMS
+ * @since 1.7.0
+ */
+ tdm_error (*output_set_dpms_async)(tdm_output *output, tdm_output_dpms dpms_value);
+
/**
* @brief Creates a new window on the given display.
* @param[in] output A output object
tbm_surface_queue_h (*output_hwc_get_target_surface_queue)(tdm_output *output,
tdm_error *error);
- /**
- * @brief Set DPMS of a output object asynchronously
- * @param[in] output A output object
- * @details This function can be NULL if an output doesn't support asynchronous
- * DPMS control. Otherwise, an output should have #TDM_OUTPUT_CAPABILITY_ASYNC_DPMS
- * flags which #output_get_capability returns. And if a output dpms handler is added with
- * #output_set_dpms_handler, a backend module needs to call the output dpms handler
- * to let the TDM frontend know the output DPMS change indeed.
- * @param[in] dpms_value DPMS value
- * @return #TDM_ERROR_NONE if success. Otherwise, error value.
- * @see #output_set_dpms_handler, #TDM_OUTPUT_CAPABILITY_ASYNC_DPMS
- * @since 1.7.0
- */
- tdm_error (*output_set_dpms_async)(tdm_output *output, tdm_output_dpms dpms_value);
-
void (*reserved3)(void);
void (*reserved4)(void);
void (*reserved5)(void);