* @details
* This function will dup the fd of the given enviroment variable. The Caller
* @b SHOULD close the fd.
- * \n
- * In DRM system, a drm-master-fd @b SHOULD be shared between TDM backend and
- * TBM backend in display server side by using "TDM_DRM_MASTER_FD"
- * and "TBM_DRM_MASTER_FD".
* @param[in] env The given enviroment variable
* @return fd if success. Otherwise, -1.
* @see #tdm_helper_set_fd()
/**
* @brief Set the given fd to the give enviroment variable.
- * @details
- * In DRM system, a drm-master-fd @b SHOULD be shared between TDM backend and
- * TBM backend in display server side by using "TDM_DRM_MASTER_FD"
- * and "TBM_DRM_MASTER_FD".
* @param[in] env The given enviroment variable
* @param[in] fd The given fd
* @see #tdm_helper_get_fd()
* @brief Get whether the commit-per-vblank functionality is enabled or not.
* @param[in] dpy A display object
* @return 1 if enabled. Otherwise, 0.
+ *
+ * @deprecated use @c tdm_helper_output_commit_per_vblank_enabled instead
*/
int
tdm_helper_commit_per_vblank_enabled(tdm_display *dpy);
+/**
+ * @brief Get whether the commit-per-vblank functionality is enabled or not for the output.
+ * @param[in] output An output the functionality has to be checked for
+ * @return -1 if error occurred, 1 if enabled, 0 if disabled.
+ */
+int
+tdm_helper_output_commit_per_vblank_enabled(tdm_output *output);
+
#ifdef __cplusplus
}
#endif