BugID:16967023:[awss] add DLL_IOT_API for awss exported symbols
#define __AWSS_H__
#include <stdint.h>
+#include "iot_export.h"
#if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */
extern "C"
@@ -19,7 +20,7 @@ extern "C"
* @retval 0 : sucess
* @note: awss_report_cloud must been called to enable wifi setup service
*/
-int awss_start(void);
+DLL_IOT_API int awss_start(void);
/**
* @brief stop wifi setup service
@@ -29,7 +30,7 @@ int awss_start(void);
* @note
* if awss_stop is called before exit of awss_start, awss and notify will stop.
*/
-int awss_stop(void);
+DLL_IOT_API int awss_stop(void);
/**
* @brief make sure user touches device belong to themselves
@@ -38,7 +39,7 @@ int awss_stop(void);
* @retval 0 : sucess
* @note: AWSS doesn't parse awss packet until user touches deivce use this api.
*/
-int awss_config_press(void);
+DLL_IOT_API int awss_config_press(void);
/**
* @brief get the awss config press status in realtime.
@@ -46,8 +47,8 @@ int awss_config_press(void);
* @retval 1 : user has touched device
* @retval 0 : user don't touch device
*/
-uint8_t awss_get_config_press(void);
-void awss_set_config_press(uint8_t press);
+DLL_IOT_API uint8_t awss_get_config_press(void);
+DLL_IOT_API void awss_set_config_press(uint8_t press);
/**
* @brief report token to cloud after wifi setup success
@@ -55,7 +56,7 @@ void awss_set_config_press(uint8_t press);
* @retval -1 : failure
* @retval 0 : sucess
*/
-int awss_report_cloud(void);
+DLL_IOT_API int awss_report_cloud(void);
#if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */
}
