[Tizen-submit] 19562: Changes to Tizen:Mobile/bluetooth-frwk

noreply at tizen.org noreply at tizen.org
Mon Jan 13 06:34:55 GMT 2014


Hi,
Wu Zheng have made the following changes to bluetooth-frwk in project Tizen:Mobile. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #19562

  submit:       Tizen:Mobile:build/bluetooth-frwk(cleanup) -> Tizen:Mobile


Message:
Submitter: Wu Zheng <wu.zheng at intel.com>
Comments: Set bt-core status to match IVI
Git project: platform/core/connectivity/bluetooth-frwk
Tag: submit/tizen/20140113.064440
Commit: 485674b094d5a2e336460941f5c8c4860390a013 Set bt-core status to match IVI

State:   new        2014-01-13T06:32:12 tizenrobot
Comment: <no comment>
changes files:
--------------

spec files:
-----------
--- bluetooth-frwk.spec
+++ bluetooth-frwk.spec
@@ -3,7 +3,7 @@
 %bcond_with multi_user
 
 Name:       bluetooth-frwk
-VCS:        platform/core/connectivity/bluetooth-frwk#341e1dff4e826ead1f1c0bbae5d640952ebff864
+VCS:        platform/core/connectivity/bluetooth-frwk#485674b094d5a2e336460941f5c8c4860390a013
 Summary:    Bluetooth framework for BlueZ and Obexd
 Version:    0.2.55
 Release:    2

other changes:
--------------

++++++ bluetooth-frwk-0.2.55.tar.gz
--- bt-api/CMakeLists.txt
+++ bt-api/CMakeLists.txt
@@ -79,8 +79,8 @@
 SET_TARGET_PROPERTIES(bluetooth-api PROPERTIES VERSION ${VERSION})
 TARGET_LINK_LIBRARIES(bluetooth-api ${packages_LDFLAGS})
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-api.pc.in ${CMAKE_CURRENT_BINARY_DIR}/bluetooth-api.pc @ONLY)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/bluetooth-api.pc DESTINATION lib/pkgconfig)
-INSTALL(TARGETS bluetooth-api DESTINATION lib COMPONENT RuntimeLibraries)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/bluetooth-api.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+INSTALL(TARGETS bluetooth-api DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
 
 FOREACH(hfile ${HEADERS})
 	INSTALL(FILES ${CMAKE_SOURCE_DIR}/include/${hfile} DESTINATION include/bt-service)
--- bt-api/bluetooth-api.pc.in
+++ bt-api/bluetooth-api.pc.in
@@ -1,6 +1,6 @@
 prefix=@PREFIX@
 exec_prefix=@EXEC_PREFIX@
-libdir=@LIBDIR@
+libdir=@LIB_INSTALL_DIR@
 includedir=@INCLUDEDIR@
 
 Name: bluetooth-api
--- bt-api/bt-service-api.pc.in
+++ bt-api/bt-service-api.pc.in
@@ -1,6 +1,6 @@
 prefix=@PREFIX@
 exec_prefix=@EXEC_PREFIX@
-libdir=@LIBDIR@
+libdir=@LIB_INSTALL_DIR@
 includedir=@INCLUDEDIR@
 
 Name: bt-service
--- bt-core/bt_core.c
+++ bt-core/bt_core.c
@@ -141,6 +141,7 @@
 
 	BT_DBG("");
 
+#ifdef __TIZEN_MOBILE__
 	status = __bt_core_get_status();
 	if (status == BT_ACTIVATING) {
 		/* Forcely terminate */
@@ -153,15 +154,17 @@
 		BT_DBG("Invalid state %d", status);
 		return -1;
 	}
-
+#endif
 	__bt_core_set_status(BT_DEACTIVATING);
 
 	if (system("/usr/etc/bluetooth/bt-stack-down.sh &") < 0) {
 			BT_DBG("running script failed");
-			__bt_core_set_status( BT_ACTIVATED);
+			__bt_core_set_status(BT_ACTIVATED);
 			return -1;
 	}
-
+#ifndef __TIZEN_MOBILE__
+	__bt_core_terminate();
+#endif
 	return 0;
 }
 


More information about the Tizen-submit mailing list