Update API header files and docs 52/253652/1 accepted/tizen/unified/20210218.042123 submit/tizen/20210216.223806
authorAbhay Agarwal <ay.agarwal@samsung.com>
Tue, 16 Feb 2021 05:57:48 +0000 (11:27 +0530)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Tue, 16 Feb 2021 05:57:54 +0000 (11:27 +0530)
This patch handles
- Update document
- Remove empty tags
- Rename Enum's
- Fix typo's

Change-Id: I210459ebb1f8f16d2b9739fd7b6d8feb5dab0921
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
doc/user-awareness-doc.h
include/user-awareness-type.h
include/user-awareness.h
src/user-awareness-device.c
src/user-awareness-monitors.c
test/uat-devices.c
test/uat-scenarios.c
test/uat-service.c
test/uat-users.c

index ca6af464265d3b14058999aad9755832a8736257..1e0650d1f6a76808332cc4f7d033a30585dd6aac 100644 (file)
@@ -41,9 +41,8 @@
  *
  * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
  *
- * More details on using features in your application can be found in the <a href="https://developer.tizen.org/development/getting-started/native-application/understanding-tizen-programming/application-filtering"><b>Feature List</b>.</a>
+ * More details on using features in your application can be found in the <a href="https://developer.tizen.org/development/tizen-studio/native-tools/configuring-your-app/manifest-text-editor#feature"><b>feature element description</b></a>."
  *
  */
 
 #endif /* __TIZEN_NETWORK_USER_AWARENESS_DOC_H__ */
-
index 295e7f992d10c2168d01d874c5bed8d00a61c5d9..914464715f447b3218ea0928d782ba92242c47b1 100755 (executable)
@@ -130,7 +130,7 @@ typedef enum {
        UA_ERROR_NOT_ENABLED = TIZEN_ERROR_USER_AWARENESS | 0x06, /**< Not enabled */
        UA_ERROR_NOT_FOUND = TIZEN_ERROR_USER_AWARENESS | 0x10, /**< Not found */
        UA_ERROR_ALREADY_REGISTERED = TIZEN_ERROR_USER_AWARENESS | 0x11, /**< Already registered */
-       UA_ERROR_DB_FAILED = TIZEN_ERROR_USER_AWARENESS | 0x12, /**< DB operation faield */
+       UA_ERROR_DB_FAILED = TIZEN_ERROR_USER_AWARENESS | 0x12, /**< DB operation failed */
        UA_ERROR_NOT_REGISTERED = TIZEN_ERROR_USER_AWARENESS | 0x13, /**< Not registered */
 } ua_error_e;
 
@@ -156,7 +156,7 @@ typedef enum {
  * @since_tizen 6.5
  */
 typedef enum {
-       UA_DETECT_MODE_ALL_SENSOR = 0x01, /**< Detection mode all */
+       UA_DETECT_MODE_ALL_SENSORS = 0x01, /**< Detection mode all */
        UA_DETECT_MODE_ANY_SENSOR, /**< Detection mode any */
        UA_DETECT_MODE_INVALID /**< <Invalid detection mode */
 } ua_detection_mode_e;
@@ -167,7 +167,7 @@ typedef enum {
  * @since_tizen 6.5
  */
 typedef enum {
-       UA_OS_TYPE_NOT_DEFINE = 0x00, /**< OS not defined */
+       UA_OS_TYPE_NOT_DEFINED = 0x00, /**< OS not defined */
        UA_OS_TYPE_TIZEN, /**< Tizen */
        UA_OS_TYPE_ANDROID, /**< Android */
        UA_OS_TYPE_IOS, /**< iOS */
@@ -175,7 +175,7 @@ typedef enum {
 
 /**
  * @ingroup CAPI_NETWORK_UA_MODULE
- * @brief Enumerations of User device mac address types.
+ * @brief Enumerations of User device MAC address types.
  * @since_tizen 6.5
  */
 typedef enum {
@@ -184,7 +184,7 @@ typedef enum {
        UA_MAC_TYPE_BLE = 0x02, /**< BLE MAC */
        UA_MAC_TYPE_WIFI = 0x04, /**< Wi-Fi station mode MAC */
        UA_MAC_TYPE_P2P = 0x08, /**< Wi-Fi P2P mode MAC */
-       UA_MAC_TYPE_INVALID /**< <Invalid MAC type */
+       UA_MAC_TYPE_INVALID /**< Invalid MAC type */
 } ua_mac_type_e;
 
 /**
@@ -259,9 +259,6 @@ typedef void *ua_device_h;
  * @param[in] status The status of sensor detected.
  * @param[in] user_data The user data passed in ua_monitor_set_sensor_status_cb().
  *
- * @exception
- * @pre
- * @post
  */
 typedef void (*ua_sensor_status_changed_cb)(
                ua_monitor_h handle,
@@ -278,10 +275,6 @@ typedef void (*ua_sensor_status_changed_cb)(
  * @param[in] sensor Sensor type which is present in UA monitor.
  * @param[in] user_data User data passed in ua_monitor_foreach_sensor().
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_foreach_sensor()
  */
 typedef bool (*ua_monitor_foreach_sensor_cb)(
@@ -304,10 +297,6 @@ typedef bool (*ua_monitor_foreach_sensor_cb)(
  *  is complete, it is set to NULL.
  * @param[in] user_data The user data passed in ua_monitor_start_scan()
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_start_scan()
  */
 typedef void (*ua_scan_completed_cb)(
@@ -340,10 +329,6 @@ typedef void (*ua_scan_completed_cb)(
  * @param[in] sensor_handle The sensor handle for the detected sensor.
  * @param[in] user_data The user data passed in ua_monitor_start_presence_detection()
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_start_presence_detection()
  */
 typedef void (*ua_presence_detected_cb)(
@@ -377,10 +362,6 @@ typedef void (*ua_presence_detected_cb)(
  * @param[in] sensor_handle The sensor handle for the detected sensor.
  * @param[in] user_data The user data passed in ua_monitor_start_absence_detection()
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_start_absence_detection()
  */
 typedef void (*ua_absence_detected_cb)(
@@ -402,10 +383,6 @@ typedef void (*ua_absence_detected_cb)(
  * @param[in] device_handle The device handle.
  * @param[in] user_data User data passed in ua_user_foreach_devices().
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_user_foreach_devices()
  */
 typedef bool (*ua_registered_dev_cb)(
@@ -423,10 +400,6 @@ typedef bool (*ua_registered_dev_cb)(
  * @param[in] service_handle The service handle.
  * @param[in] user_data User data passed in ua_foreach_services().
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_foreach_services()
  */
 typedef bool (*ua_service_added_cb)(
@@ -447,10 +420,6 @@ typedef bool (*ua_service_added_cb)(
  * @param[in] user_handle The user handle.
  * @param[in] user_data User data passed in ua_service_foreach_users().
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_foreach_users()
  */
 typedef bool (*ua_service_added_user_cb)(
@@ -470,10 +439,6 @@ typedef bool (*ua_service_added_user_cb)(
  * @param[in] dev_handle The added device's handle
  * @param[in] user_data The user data passed in ua_user_add_device()
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_user_add_device()
  */
 typedef void (*ua_user_device_added_cb)(
index c068269dcabb6963eceff908b9e0d4abc11aff0e..5e2fc9660e165420d23616ecd231dae15bc503f9 100755 (executable)
@@ -48,10 +48,6 @@ extern "C" {
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_ALREADY_DONE Already initialized
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_deinitialize()
  */
 int ua_initialize(void);
@@ -66,10 +62,6 @@ int ua_initialize(void);
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  * @retval #UA_ERROR_ALREADY_DONE Already initialized
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_initialize()
  */
 int ua_deinitialize(void);
@@ -87,10 +79,6 @@ int ua_deinitialize(void);
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_added_cb()
  */
 int ua_foreach_services(
@@ -113,10 +101,6 @@ int ua_foreach_services(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_get_name()
  * @see ua_service_set_name()
  */
@@ -139,10 +123,6 @@ int ua_get_default_service(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_create()
  */
 int ua_get_service_by_name(
@@ -167,10 +147,6 @@ int ua_get_service_by_name(
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_destroy()
  */
 int ua_monitor_create(
@@ -191,10 +167,6 @@ int ua_monitor_create(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_create()
  */
 int ua_monitor_destroy(
@@ -220,10 +192,6 @@ int ua_monitor_destroy(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_remove_sensor()
  * @see ua_monitor_foreach_sensor()
  */
@@ -251,10 +219,6 @@ int ua_monitor_add_sensor(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_add_sensor()
  * @see ua_monitor_foreach_sensor()
  */
@@ -277,10 +241,6 @@ int ua_monitor_remove_sensor(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_add_sensor()
  * @see ua_monitor_remove_sensor()
  */
@@ -303,9 +263,6 @@ int ua_monitor_foreach_sensor(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
  */
 int ua_monitor_is_sensor_available(
                ua_sensor_e sensor,
@@ -329,9 +286,6 @@ int ua_monitor_is_sensor_available(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
  */
 int ua_monitor_set_sensor_status_cb(
                ua_monitor_h handle,
@@ -350,10 +304,6 @@ int ua_monitor_set_sensor_status_cb(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_set_sensor_status_cb()
  */
 int ua_monitor_unset_sensor_status_cb(
@@ -384,10 +334,6 @@ int ua_monitor_unset_sensor_status_cb(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see UA_SCAN_TIME_MULTIPLIER
  * @see ua_scan_completed_cb()
  * @see ua_monitor_stop_scan()
@@ -415,10 +361,6 @@ int ua_monitor_start_scan(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_start_scan()
  */
 int ua_monitor_stop_scan(ua_monitor_h monitor);
@@ -437,7 +379,7 @@ int ua_monitor_stop_scan(ua_monitor_h monitor);
  * @param[in] handle The monitor handle
  * @param[in] service_handle The service handle. If service is NULL then montior will start for default service.
  * @param[in] mode  User detection mode. \n
- *  #UA_DETECT_MODE_ALL_SENSOR : Detection callback will be invoked only after a user is
+ *  #UA_DETECT_MODE_ALL_SENSORS : Detection callback will be invoked only after a user is
  *  detected by all sensors added to monitor. \n
  *  #UA_DETECT_MODE_ANY_SENSOR : Detection callback will be invoked as soon as a user is
  *  detected by any one of the sensors. \n
@@ -453,10 +395,6 @@ int ua_monitor_stop_scan(ua_monitor_h monitor);
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_presence_detected_cb()
  * @see ua_monitor_stop_presence_detection()
  */
@@ -484,10 +422,6 @@ int ua_monitor_start_presence_detection(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_start_presence_detection()
  */
 int ua_monitor_stop_presence_detection(
@@ -506,7 +440,7 @@ int ua_monitor_stop_presence_detection(
  * @param[in] handle The monitor handle
  * @param[in] service_handle The service handle. If service is NULL then montior will start for default service.
  * @param[in] mode User detection mode. \n
- *  #UA_DETECT_MODE_ALL_SENSOR : Detection callback will be invoked only after no user is
+ *  #UA_DETECT_MODE_ALL_SENSORS : Detection callback will be invoked only after no user is
  *  detected by all sensors added to monitor. \n
  *  #UA_DETECT_MODE_ANY_SENSOR : Detection callback will be invoked as soon as no user is
  *  detected by any one of the sensors. \n
@@ -522,10 +456,6 @@ int ua_monitor_stop_presence_detection(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_absence_detected_cb()
  * @see ua_monitor_stop_absence_detection()
  */
@@ -553,10 +483,6 @@ int ua_monitor_start_absence_detection(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_monitor_start_absence_detection()
  */
 int ua_monitor_stop_absence_detection(
@@ -581,10 +507,6 @@ int ua_monitor_stop_absence_detection(
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_user_destroy()
  */
 int ua_user_create(const char *account,
@@ -607,10 +529,6 @@ int ua_user_create(const char *account,
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_user_create()
  */
 int ua_user_destroy(
@@ -632,10 +550,6 @@ int ua_user_destroy(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_user_remove()
  */
 int ua_user_add(ua_user_h user_handle);
@@ -656,10 +570,6 @@ int ua_user_add(ua_user_h user_handle);
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_user_add()
  */
 int ua_user_remove(ua_user_h user_handle);
@@ -679,10 +589,6 @@ int ua_user_remove(ua_user_h user_handle);
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_user_create()
  */
 int ua_user_get_account(ua_user_h user_handle, char **account);
@@ -705,10 +611,6 @@ int ua_user_get_account(ua_user_h user_handle, char **account);
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_user_remove_device()
  * @see ua_user_device_added_cb()
  */
@@ -736,10 +638,6 @@ int ua_user_add_device(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_user_add_device()
  */
 int ua_user_remove_device(
@@ -761,10 +659,6 @@ int ua_user_remove_device(
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_registered_dev_cb()
  */
 int ua_user_foreach_devices(
@@ -791,10 +685,6 @@ int ua_user_foreach_devices(
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_destroy()
  */
 int ua_service_create(
@@ -818,10 +708,6 @@ int ua_service_create(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_create()
  */
 int ua_service_destroy(
@@ -843,10 +729,6 @@ int ua_service_destroy(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_remove()
  */
 int ua_service_add(
@@ -868,10 +750,6 @@ int ua_service_add(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_create()
  * @see ua_service_remove()
  */
@@ -894,10 +772,6 @@ int ua_service_update(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_add()
  */
 int ua_service_remove(
@@ -918,10 +792,6 @@ int ua_service_remove(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_set_name()
  */
 int ua_service_get_name(
@@ -942,10 +812,6 @@ int ua_service_get_name(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  */
 int ua_service_set_detection_threshold(
                ua_service_h service_handle,
@@ -969,10 +835,6 @@ int ua_service_set_detection_threshold(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_set_detection_threshold()
  */
 int ua_service_get_detection_threshold(
@@ -999,10 +861,6 @@ int ua_service_get_detection_threshold(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  */
 int ua_service_get_user_by_account(ua_service_h service_handle,
                const char* account, ua_user_h *user_handle);
@@ -1023,10 +881,6 @@ int ua_service_get_user_by_account(ua_service_h service_handle,
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_remove_user()
  */
 int ua_service_add_user(
@@ -1050,10 +904,6 @@ int ua_service_add_user(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_add_user()
  */
 int ua_service_remove_user(
@@ -1077,10 +927,6 @@ int ua_service_remove_user(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_add_user()
  * @see ua_service_remove_user()
  */
@@ -1103,10 +949,6 @@ int ua_service_set_device_discriminant(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_add_device()
  * @see ua_service_remove_device()
  */
@@ -1129,10 +971,6 @@ int ua_service_get_device_discriminant(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_service_added_user_cb()
  */
 int ua_service_foreach_users(
@@ -1162,10 +1000,6 @@ int ua_service_foreach_users(
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_destroy()
  */
 int ua_device_create(ua_mac_type_e mac_type,
@@ -1190,10 +1024,6 @@ int ua_device_create(ua_mac_type_e mac_type,
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_create()
  */
 int ua_device_destroy(
@@ -1211,10 +1041,6 @@ int ua_device_destroy(
  * @retval #UA_ERROR_NONE Successful
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_set_mac_type()
  */
 int ua_device_get_mac_type(
@@ -1237,10 +1063,6 @@ int ua_device_get_mac_type(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_get_os_info()
  */
 int ua_device_set_os_info(
@@ -1259,10 +1081,6 @@ int ua_device_set_os_info(
  * @retval #UA_ERROR_NONE Successful
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_set_os_info()
  */
 int ua_device_get_os_info(
@@ -1283,10 +1101,6 @@ int ua_device_get_os_info(
  * @retval #UA_ERROR_NONE Successful
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_set_mac_address()
  */
 int ua_device_get_mac_address(
@@ -1328,10 +1142,6 @@ int ua_device_get_device_id(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_get_wifi_bssid()
  */
 int ua_device_set_wifi_bssid(
@@ -1351,10 +1161,6 @@ int ua_device_set_wifi_bssid(
  * @retval #UA_ERROR_NONE Successful
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_set_wifi_bssid()
  */
 int ua_device_get_wifi_bssid(
@@ -1376,10 +1182,6 @@ int ua_device_get_wifi_bssid(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_get_wifi_ipv4_address()
  */
 int ua_device_set_wifi_ipv4_address(
@@ -1400,10 +1202,6 @@ int ua_device_set_wifi_ipv4_address(
  * @retval #UA_ERROR_NONE Successful
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_set_wifi_ipv4_address()
  */
 int ua_device_get_wifi_ipv4_address(
@@ -1422,10 +1220,6 @@ int ua_device_get_wifi_ipv4_address(
  * @retval #UA_ERROR_NONE Successful
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  *
- * @exception
- * @pre
- * @post
- *
  */
 int ua_device_get_last_presence(
                ua_device_h device_handle,
@@ -1445,10 +1239,6 @@ int ua_device_get_last_presence(
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_create()
  */
 int ua_device_get_pairing_required(
@@ -1471,10 +1261,6 @@ int ua_device_get_pairing_required(
  * @retval #UA_ERROR_OPERATION_FAILED Operation failed
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  * @see ua_device_set_os_info()
  * @see ua_device_set_wifi_ipv4_address()
  */
@@ -1498,10 +1284,6 @@ int ua_device_update(
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  */
 int ua_device_get_by_mac_address(
                const char *mac,
@@ -1525,10 +1307,6 @@ int ua_device_get_by_mac_address(
  * @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  */
 int ua_device_get_by_device_id(
                const char *device_id,
@@ -1548,10 +1326,6 @@ int ua_device_get_by_device_id(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  */
 int ua_sensor_get_status(
                ua_sensor_h sensor_handle,
@@ -1570,10 +1344,6 @@ int ua_sensor_get_status(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  */
 int ua_sensor_get_timestamp(
                ua_sensor_h sensor_handle,
@@ -1592,10 +1362,6 @@ int ua_sensor_get_timestamp(
  * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
  *
- * @exception
- * @pre
- * @post
- *
  */
 int ua_sensor_get_type(
                ua_sensor_h sensor_handle,
index a5605bc9abb6ab26fca842fa80fab5b9da722c6e..8928a14cc8e9e2c15d51839e1eb6f6686a83a298 100755 (executable)
@@ -471,7 +471,7 @@ int ua_device_create(ua_mac_type_e mac_type,
        device->device_id = g_strdup(device_id);
        device->pairing_required = FALSE;
        device->state = UA_PRSENCE_STATE_INVALID;
-       device->os = UA_OS_TYPE_NOT_DEFINE;
+       device->os = UA_OS_TYPE_NOT_DEFINED;
        device->isadded = false;
        device->discriminant = true;
        device->mac = g_strdup(mac_address);
@@ -606,7 +606,7 @@ int ua_device_set_os_info(
 
        ua_dev_info_s *device = (ua_dev_info_s *)handle;
 
-       if (os > UA_OS_TYPE_IOS || os == UA_OS_TYPE_NOT_DEFINE) {
+       if (os > UA_OS_TYPE_IOS || os == UA_OS_TYPE_NOT_DEFINED) {
                /* LCOV_EXCL_START */
                UA_ERR("Invalid os type");
                return UA_ERROR_INVALID_PARAMETER;
index 50728cf5bed7ca83e7416e1fefbfc915ca1b718d..ebdf95256ea9fe9afded41d556d6a2a11406e849 100755 (executable)
@@ -472,14 +472,14 @@ static void __ua_monitor_send_sensor_presence_cb(ua_monitor_s *monitor,
        }
 
        switch (monitor->presence_mode) {
-       case UA_DETECT_MODE_ALL_SENSOR:
+       case UA_DETECT_MODE_ALL_SENSORS:
                /*
                 * Sends presence if it is detected by all sensors irrespective of device/user i.e if
                 * presence will be detected by device 1 for sensor 1 and by device 2 for sensor 2 then
                 * send presence detection callback to application. This will make sure that each sensor is
                 * detected at least one device from registered devices list.
                 */
-               UA_INFO("UA_DETECT_MODE_ALL_SENSOR [%d][%d]",
+               UA_INFO("UA_DETECT_MODE_ALL_SENSORS [%d][%d]",
                        bitmask, monitor->presence_detected_bitmask);
 
                if (((bitmask == UA_SENSOR_BLE)
@@ -491,7 +491,7 @@ static void __ua_monitor_send_sensor_presence_cb(ua_monitor_s *monitor,
                else
                        monitor->presence_detected_bitmask |= bitmask;
 
-               UA_INFO("UA_DETECT_MODE_ALL_SENSOR [%d][%d]",
+               UA_INFO("UA_DETECT_MODE_ALL_SENSORS [%d][%d]",
                        bitmask, monitor->presence_detected_bitmask);
 
                break;
@@ -694,7 +694,7 @@ static void __ua_send_absence_detection(char *svc_name)
                UA_INFO("monitor->sensor_bitmask: 0x%8.8X, monitor->absence_detected_bitmask: 0x%8.8X",
                                monitor->sensor_bitmask, monitor->absence_detected_bitmask);
 
-               if (monitor->absence_mode == UA_DETECT_MODE_ALL_SENSOR) {
+               if (monitor->absence_mode == UA_DETECT_MODE_ALL_SENSORS) {
                        if (monitor->sensor_bitmask & UA_SENSOR_BLE) {
                                if (__ua_check_all_users_absence_state(monitor->user_state, UA_SENSOR_BLE))
                                        monitor->absence_detected_bitmask |= UA_SENSOR_BLE;
@@ -789,7 +789,7 @@ static void __ua_sensor_absence_detected(ua_monitor_s *monitor,
                service_handle = service->service_handle;
 
        switch (monitor->absence_mode) {
-       case UA_DETECT_MODE_ALL_SENSOR:
+       case UA_DETECT_MODE_ALL_SENSORS:
                break;
        case UA_DETECT_MODE_ANY_SENSOR:
                /* First add user info to local users list and then invoke callback */
@@ -1579,7 +1579,7 @@ int ua_monitor_start_absence_detection(
                UA_WARN("_uam_get_available_sensors failed");
        ret = __ua_start_monitoring(monitor->sensor_bitmask, monitor->service, detect);
 
-       if (mode == UA_DETECT_MODE_ALL_SENSOR)
+       if (mode == UA_DETECT_MODE_ALL_SENSORS)
                __ua_monitor_internal_presence_ref(monitor);
 
        if (monitor->internal_presence_started)
@@ -1685,7 +1685,7 @@ int ua_monitor_stop_absence_detection(ua_monitor_h handle)
                if (!monitor->presence_detection_started)
                        __ua_stop_monitoring(monitor->sensor_bitmask, monitor->service, UA_PRESENCE_DETECTION);
 
-       if (monitor->absence_mode == UA_DETECT_MODE_ALL_SENSOR)
+       if (monitor->absence_mode == UA_DETECT_MODE_ALL_SENSORS)
                __ua_monitor_internal_presence_unref(monitor);
 
        monitor->absence_mode = UA_DETECT_MODE_INVALID;
index 784f3323ab58442dd738f515f1cd35c7b7508fa1..3f8bfb54de0f135ac1836431b1068906b66b9336 100755 (executable)
@@ -59,7 +59,7 @@ bool _foreach_added_device_cb(
        ua_device_h handle = NULL;
 
        ua_mac_type_e mac_type = UA_MAC_TYPE_INVALID;
-       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINE;
+       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINED;
        char *device_id = NULL;
        char *mac = NULL;
        char *wifi_bssid = NULL;
@@ -133,7 +133,7 @@ void uat_update_device_info(void)
 {
        int ret = UA_ERROR_NONE;
        ua_mac_type_e mac_type = UA_MAC_TYPE_INVALID;
-       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINE;
+       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINED;
        char *device_id = NULL;
        char *mac = NULL;
        char *wifi_bssid = NULL;
@@ -244,7 +244,7 @@ static int run_ua_device_set_os_info(
        MManager *mm, struct menu_data *menu)
 {
        int ret = UA_ERROR_NONE;
-       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINE;
+       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINED;
 
        msg("ua_device_set_os_info");
 
@@ -253,7 +253,7 @@ static int run_ua_device_set_os_info(
 
        if (ostype > UA_OS_TYPE_IOS)
                ostype = UA_OS_TYPE_IOS;
-       else if (ostype < UA_OS_TYPE_NOT_DEFINE)
+       else if (ostype < UA_OS_TYPE_NOT_DEFINED)
                ostype = UA_OS_TYPE_TIZEN;
 
        snprintf(g_os_type_str, MENU_DATA_SIZE, "%s",
index 4b44c09833c66f4b1b6c37ddad26c36eba2df3d1..28d6b861aaa679ffe81e5332a0c04ce045f8aaae 100755 (executable)
@@ -319,14 +319,14 @@ static int __create_add_device(int device_type, int ostype,
 static int run_ua_scenario_add_device(MManager *mm, struct menu_data *menu)
 {
        int ret = UA_ERROR_NONE;
-       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINE;
+       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINED;
 
        if (strlen(g_os_type))
                ostype = (unsigned char)strtol(g_os_type, NULL, 10);
 
        if (ostype > UA_OS_TYPE_IOS)
                ostype = UA_OS_TYPE_IOS;
-       else if (ostype < UA_OS_TYPE_NOT_DEFINE)
+       else if (ostype < UA_OS_TYPE_NOT_DEFINED)
                ostype = UA_OS_TYPE_TIZEN;
 
        /* Add wifi device */
index ca67a1872219d5dbb3c07bf17adb10597a09b7cc..3fab2081d32296f0b948b0677e2e3277933847b4 100755 (executable)
@@ -174,7 +174,7 @@ static bool _service_foreach_added_device_cb(
        char *service_name = NULL;
 
        ua_mac_type_e mac_type = UA_MAC_TYPE_INVALID;
-       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINE;
+       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINED;
        char *device_id = NULL;
        char *mac = NULL;
        char *wifi_bssid = NULL;
index 87144b894b95022d7021d28a22fae76d89b16487..5924300cdefb071bd93758afc658bf0008739f40 100755 (executable)
@@ -121,7 +121,7 @@ void _print_device_info(ua_device_h handle)
 {
        int ret;
        ua_mac_type_e mac_type = UA_MAC_TYPE_INVALID;
-       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINE;
+       ua_os_type_e ostype = UA_OS_TYPE_NOT_DEFINED;
        char *device_id = NULL;
        char *mac = NULL;
        char *ipv4 = NULL;