output: add tdm_output_has_capture_capability
[platform/core/uifw/libtdm.git] / include / tdm.h
index 7d8ed4d..bc1f0ef 100644 (file)
@@ -228,24 +228,24 @@ tdm_display_create_pp(tdm_display *dpy, tdm_error *error);
 
 /**
  * @brief Get the information of the TDM backend module.
- * @param[in] backend A backend object
+ * @param[in] module A backend module object
  * @param[out] name The name of the TDM backend module
  * @param[out] vendor The vendor of the TDM backend module
  * @param[out] version The version of the TDM backend module
  * @return #TDM_ERROR_NONE if success. Otherwise, error value.
  */
 tdm_error
-tdm_backend_get_info(tdm_backend *backend, const char **name,
-                                        const char **vendor, int *major, int *minor);
+tdm_module_get_info(tdm_module *module, const char **name,
+                                       const char **vendor, int *major, int *minor);
 
 /**
- * @brief Get a backend object of the given output.
+ * @brief Get a backend module object of the given output.
  * @param[in] output A output object
  * @param[out] error #TDM_ERROR_NONE if success. Otherwise, error value.
  * @return A backend object if success. Otherwise, NULL.
  */
-tdm_backend *
-tdm_output_get_backend(tdm_output *output, tdm_error *error);
+tdm_module *
+tdm_output_get_backend_module(tdm_output *output, tdm_error *error);
 
 /**
  * @brief Get the capabilities of a output object.
@@ -548,6 +548,15 @@ tdm_error
 tdm_output_get_dpms(tdm_output *output, tdm_output_dpms *dpms_value);
 
 /**
+ * @brief Check if a output object has the capture capability
+ * @param[in] output A output object
+ * @param[out] has_capability 1: has the capability, 0: not has the capability
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ */
+tdm_error
+tdm_output_has_capture_capability(tdm_output *output, unsigned int *has_capability);
+
+/**
  * @brief Create a capture object of a output object
  * @param[in] output A output object
  * @param[out] error #TDM_ERROR_NONE if success. Otherwise, error value.