MTP_EVENT_OBJECT_ADDED, /**< Object is added */
MTP_EVENT_OBJECT_REMOVED, /**< Object is removed */
MTP_EVENT_DEVICE_ADDED, /**< Device is added */
- MTP_EVENT_DEVICE_REMOVED /**< Device is removed */
+ MTP_EVENT_DEVICE_REMOVED, /**< Device is removed */
+ MTP_EVENT_DAEMON_TERMINATED /**< Daemon is terminated */
} mtp_event_e;
/**
Name: capi-network-mtp
Summary: A MTP library in Native API
-Version: 1.2.1
+Version: 1.2.2
Release: 1
Group: Network & Connectivity/Other
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
# This package would be built only TV
-%if "%{?tizen_profile_name}" != "tv"
-ExcludeArch: %{arm} %ix86 x86_64
+%if "%{?profile}" != "tv"
+ExcludeArch: %arm aarch64 %ix86 x86_64
%endif
BuildRequires: cmake
void __test_mtp_event_cb(mtp_event_e state, int arg, void *user_data)
{
+ int ret = 0;
+
TC_PRT("state [%d] : %d", state, arg);
+
+ if (state == MTP_EVENT_DAEMON_TERMINATED) {
+ ret = mtp_deinitialize();
+ TC_PRT("ret[%d] : Terminated daemon", ret);
+ }
}
int application_test_event_callback(void)