* The @a server_name should not be released by the application. \n
* The @a server_name can be used only in the callback. To use outside, make a copy.
*
- * @param[in] server_name The app_id of the media controller server which sent the notification..
+ * @param[in] server_name The app_id of the media controller server which sent the notification.
* @param[in] mode The repeat mode of the updated media controller server
* @param[in] user_data The user data passed from the mc_client_set_repeat_mode_updated_cb() function
*
* The @a server_name and @ request_id should not be released by the application. \n
* The @a server_name and @ request_id can be used only in the callback. To use outside, make a copy.
*
- * @param[in] server_name The app_id of the media controller server which sent the reply,
+ * @param[in] server_name The app_id of the media controller server which sent the reply
* @param[in] request_id The id of the command request
* @param[in] result_code The result code of the action
* @param[in] data The extra data
* The @a server_name should not be released by the application. \n
* The @a server_name can be used only in the callback. To use outside, make a copy.
*
- * @param[in] server_name The app_id of the subscribed media controller server..
+ * @param[in] server_name The app_id of the subscribed media controller server
* @param[in] user_data The user data passed from the mc_client_foreach_server_subscribed() function
*
* @return @c true to continue with the next iteration of the loop,
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(capi-appfw-app-control)
BuildRequires: pkgconfig(vconf)
+%if 0%{?gcov:1}
+BuildRequires: lcov
+BuildRequires: zip
+%endif
# socket activation enable(1), disable(0)
%if "%{tizen_profile_name}" == "tv"
%description devel
This package provides a media controller library in Tizen Native API(Development files included)
+%if 0%{?gcov:1}
+%package gcov
+Summary: Line Coverage of Media Controller library in Tizen C API
+Group: Development/Multimedia
+%description gcov
+Collection of files related to Line Coverage. It is teseted as gcov for a media controller library in Tizen native API
+%endif
%prep
%setup -q
%__make %{?jobs:-j%jobs}
+%if 0%{?gcov:1}
+mkdir -p gcov-obj
+find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
+%endif
+
%install
rm -rf %{buildroot}
%make_install
ln -s ../mediacontroller.service %{buildroot}%{_unitdir}/multi-user.target.wants/mediacontroller.service
%endif
+%if 0%{?gcov:1}
+mkdir -p %{buildroot}%{_datadir}/gcov/obj
+install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
+%endif
+
+%check
+ctest --output-on-failure %{?_smp_mflags}
+%if 0%{?gcov:1}
+lcov -c --ignore-errors graph --no-external -q -d . -o media-controller.info
+genhtml media-controller.info -o media-controller.out
+zip -r media-controller.zip media-controller.out media-controller.info
+install -m 0644 media-controller.zip %{buildroot}%{_datadir}/gcov/
+%endif
+
%post
%postun
%files devel
%{_libdir}/*.so
%{_includedir}/media/*.h
-%{_libdir}/pkgconfig/capi-media-controller.pc
+%{_libdir}/pkgconfig/capi-media-controller.pci
+
+%if 0%{?gcov:1}
+%files gcov
+%{_datadir}/gcov/obj/*
+%endif