* @retval #WIFI_DIRECT_ERROR_OPERATION_FAILED Operation failed
* @retval #WIFI_DIRECT_ERROR_COMMUNICATION_FAILED Communication failed
* @retval #WIFI_DIRECT_ERROR_PERMISSION_DENIED Permission denied
- * @retval #WIFI_DIRECT_ERROR_INVALID_PARAMETER Invalid paramters
+ * @retval #WIFI_DIRECT_ERROR_INVALID_PARAMETER Invalid parameters
* @retval #WIFI_DIRECT_ERROR_NOT_SUPPORTED Not supported
* @retval #WIFI_DIRECT_ERROR_NOT_INITIALIZED Not initialized
* @retval #WIFI_DIRECT_ERROR_RESOURCE_BUSY Device or resource busy
int wifi_direct_set_display_availability(bool availability);
+/**
+ * @brief Gets the Wi-Fi Display parameters for the WFD IE of local device.
+ * @since_tizen 5.0
+ * @privlevel public
+ * @privilege http://tizen.org/privilege/wifidirect
+ * @param[out] type WFD device type: role of WFD device like source or sink
+ * @param[out] port Session management control port number, it will be of 2 bytes (0~65535)
+ * @param[out] hdcp CP support bit: (@c 1 = hdcp support is enabled, @c 0 = hdcp support is disabled)
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #WIFI_DIRECT_ERROR_NONE Successful
+ * @retval #WIFI_DIRECT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_DIRECT_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_DIRECT_ERROR_COMMUNICATION_FAILED Communication failed
+ * @retval #WIFI_DIRECT_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIFI_DIRECT_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #WIFI_DIRECT_ERROR_NOT_INITIALIZED Not initialized
+ * @retval #WIFI_DIRECT_ERROR_RESOURCE_BUSY Device or resource busy
+ * @pre Wi-Fi Direct service must be activated by wifi_direct_activate()
+ * and enable Wi-Fi Display by wifi_direct_init_display().
+ * @see wifi_direct_activate()
+ * @see wifi_direct_init_display()
+ * @see wifi_direct_deinit_display()
+ *
+ *
+ * Here is an example of the usage:
+ * @code
+ * #include <stdio.h>
+ * #include <wifi_direct.h>
+ *
+ *
+ * int function(void)
+ * {
+ * int ret;
+ * wifi_direct_display_type_e type;
+ * int port;
+ * int hdcp;
+ *
+ * ret = wifi_direct_get_display(&type, &port, &hdcp);
+ *
+ * if (ret != WIFI_DIRECT_ERROR_NONE) {
+ * printf("Failed to get display property\n");
+ * return -1;
+ * }
+ *
+ * printf("get display param success [type:%d], [port:%d], [hdcp:%d]\n", type, port, hdcp);
+ * return 0;
+ * }
+ *
+ * int main()
+ * {
+ * wifi_direct_initialize(); // Initialize Wi-Fi Direct
+ * wifi_direct_activated(); // Activate Wi-Fi Direct
+ *
+ * function();
+ *
+ * // APP CODE HERE
+ *
+ * // App must cleaup Wi-Fi Direct before exiting
+ *
+ * wifi_direct_deactivate(); // Deactivate Wi-Fi Direct
+ * wifi_direct_deinitialize(); // Deinitialize Wi-Fi Direct
+ * return 0;
+ * }
+ * @endcode
+ */
+int wifi_direct_get_display(wifi_direct_display_type_e *type, int *port, int *hdcp);
+
+
+/**
+ * @brief Gets the Wi-Fi Display Session Availability.
+ * @since_tizen 5.0
+ * @privlevel public
+ * @privilege http://tizen.org/privilege/wifidirect
+ * @param[out] availability Wi-Fi display session availability
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #WIFI_DIRECT_ERROR_NONE Successful
+ * @retval #WIFI_DIRECT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_DIRECT_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_DIRECT_ERROR_COMMUNICATION_FAILED Communication failed
+ * @retval #WIFI_DIRECT_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIFI_DIRECT_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #WIFI_DIRECT_ERROR_NOT_INITIALIZED Not initialized
+ * @retval #WIFI_DIRECT_ERROR_RESOURCE_BUSY Device or resource busy
+ * @pre Wi-Fi Direct service must be activated by wifi_direct_activate()
+ * and enable Wi-Fi Display by wifi_direct_display_init().
+ * @see wifi_direct_activate()
+ * @see wifi_direct_init_display()
+ * @see wifi_direct_deinit_display()
+ *
+ *
+ * Here is an example of the usage:
+ * @code
+ * #include <stdio.h>
+ * #include <wifi_direct.h>
+ *
+ *
+ * int function(void)
+ * {
+ * int ret;
+ * int availability;
+ *
+ * ret = wifi_direct_get_display_availability(&availability);
+ *
+ * if (ret != WIFI_DIRECT_ERROR_NONE) {
+ * printf("Failed to get display availability\n");
+ * return -1;
+ * }
+ *
+ * printf("get display availability success [%d]\n", availability);
+ * return 0;
+ * }
+ *
+ * int main()
+ * {
+ * wifi_direct_initialize(); // Initialize Wi-Fi Direct
+ * wifi_direct_activated(); // Activate Wi-Fi Direct
+ *
+ * function();
+ *
+ * // APP CODE HERE
+ *
+ * // App must cleaup Wi-Fi Direct before exiting
+ *
+ * wifi_direct_deactivate(); // Deactivate Wi-Fi Direct
+ * wifi_direct_deinitialize(); // Deinitialize Wi-Fi Direct
+ * return 0;
+ * }
+ * @endcode
+ */
+int wifi_direct_get_display_availability(bool *availability);
+
+
/**
* @brief Gets the information of a peer's Wi-Fi Display device type.
* @since_tizen 2.4