gboolean presence_detection_started; /**< Is presence detection started */
gboolean absence_detection_started; /**< Is absence detection started */
gboolean scan_device_started; /**< Is scan device started */
- gboolean internal_presence_started; /**< Is Internally scan device started */
+ int internal_presence_started; /**< Is Internally scan device started */
unsigned int presence_detection_timer; /**< Presence detection timer */
unsigned int absence_detection_timer; /**< Absence detection timer */
ua_callback_s sensor_state_cb; /**< Callback to let apps know sensors added or not */
/**
* @ingroup CAPI_NETWORK_UA_MODULE
- * @brief Gets last presence timestamp info for device handle.
+ * @brief Gets last presence time for device handle.
* @since_tizen 5.5
*
* @param[in] device_handle The device handle
- * @param[out] timestamp The last presence timestamp information for UA device
+ * @param[out] last_seen The last presence time for UA device
*
* @return 0 on success, otherwise a negative error value
* @retval #UA_ERROR_NONE Successful
*/
int ua_device_get_last_presence(
ua_device_h device_handle,
- unsigned long long *timestamp);
+ unsigned long long *last_seen);
/**
* @ingroup CAPI_NETWORK_UA_MODULE
+++ /dev/null
-Name: capi-network-ua
-Summary: User Awareness Framework CAPI
-<<<<<<< HEAD
-Version: 0.12.16
-=======
-Version: 0.12.15
->>>>>>> Start detection only on sensor available in monitor
-Release: 1
-License: Apache-2.0
-Source0: %{name}-%{version}.tar.gz
-
-BuildRequires: cmake
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(ua-api)
-
-%if 0%{?ptest:1}
-BuildRequires: pkgconfig(deviced)
-BuildRequires: pkgconfig(power-defs)
-%endif
-
-%define _confdir /opt/data
-
-%description
-Activity API Library
-
-%package devel
-Summary: User Awareness Framework CAPI (devel)
-Requires: %{name} = %{version}
-
-%description devel
-User Awareness Framework CAPI
-
-%package test
-Summary: User Awareness Framework test application
-Group: TO_BE/FILLED
-Requires: %{name} = %{version}-%{release}
-
-%description test
-This package is for User Awareness Framework CAPI test application
-
-%if 0%{?gcov:1}
-%package gcov
-Summary: A User Awareness gcov Tool
-Group: Network & Connectivity/Development
-
-%description gcov
-User Awareness gcov objects
-%endif
-
-%prep
-%setup -q
-
-%build
-
-%if 0%{?gcov:1}
-export LDFLAGS+=" -lgcov"
-%endif
-
-MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
- -DLIB_INSTALL_DIR=%{_libdir} \
- -DBIN_INSTALL_DIR=%{_bindir} \
- -DINCLUDE_INSTALL_DIR=%{_includedir} \
- -DLIB_PATH=%{_lib} \
- -DSUSPEND_RESUME_TEST=%{?ptest:1}%{!?ptest:0} \
- -DFULLVER=%{version} \
- -DMAJORVER=${MAJORVER} \
- -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0}
-
-make %{?jobs:-j%jobs}
-
-%if 0%{?gcov:1}
-mkdir -p gcov-obj
-find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
-%endif
-
-%install
-%make_install
-
-%if 0%{?gcov:1}
-mkdir -p %{buildroot}%{_datadir}/gcov/obj
-install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
-%endif
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%files
-%manifest %{name}.manifest
-%defattr(-,root,root,-)
-%license LICENSE
-%attr(644,-,-) %{_libdir}/lib%{name}.so
-%attr(644,-,-) %{_libdir}/lib%{name}.so.*
-
-%files devel
-%manifest %{name}-devel.manifest
-%defattr(-,root,root,-)
-%{_libdir}/pkgconfig/%{name}.pc
-%{_includedir}/*
-
-%files test
-%manifest %{name}.manifest
-%attr(777,network_fw,network_fw) %{_bindir}/ua-test
-
-%if 0%{?gcov:1}
-%files gcov
-%{_datadir}/gcov/obj/*
-%endif
char *wifi_bssid = NULL;
char *ipv4 = NULL;
bool required = false;
- unsigned long long timestamp = 0;
+ unsigned long long last_seen = 0;
bool discriminant = false;
char service_id = 0;
char device_icon = 0;
if (UA_ERROR_NONE == ret_temp)
msgb("Pairing Required : %s", required ? "YES" : "NO");
- ret_temp = ua_device_get_last_presence(handle, ×tamp);
+ ret_temp = ua_device_get_last_presence(handle, &last_seen);
if (UA_ERROR_NONE == ret_temp)
- msgb("Last present at : %llu", timestamp);
+ msgb("Last present at : %llu", last_seen);
ret_temp = ua_device_get_payload_service_id(handle, &service_id);
if (UA_ERROR_NONE == ret_temp)