• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


コミットメタ情報

リビジョン8178d51f809af0dc1c8931098589cb69fdd0a22d (tree)
日時2016-10-10 20:05:11
作者Jaap Jan Meijer <jjmeijer88@gmai...>
コミッターJaap Jan Meijer

ログメッセージ

[FOR UPSTEAM] Fix Linux libbt-vendor build

Fix enumeration values not explicitly handled in switch;
Fix unused variables;
Fix int64 printf.

変更サマリ

差分

--- a/vendor_libs/linux/bt_vendor_linux.c
+++ b/vendor_libs/linux/bt_vendor_linux.c
@@ -408,6 +408,16 @@ static int bt_vendor_op(bt_vendor_opcode_t opcode, void *param)
408408
409409 case BT_VND_OP_A2DP_OFFLOAD_STOP:
410410 break;
411+
412+ case FM_VND_OP_POWER_CTRL:
413+ break;
414+
415+ case BT_VND_OP_FM_USERIAL_OPEN:
416+ break;
417+
418+ case BT_VND_OP_FM_USERIAL_CLOSE:
419+ break;
420+
411421 }
412422
413423 LOG_INFO(LOG_TAG, "%s op %d retval %d", __func__, opcode, retval);
@@ -422,9 +432,15 @@ static void bt_vendor_cleanup(void)
422432 bt_vendor_callbacks = NULL;
423433 }
424434
435+static void ssr_cleanup (int reason)
436+{
437+ LOG_INFO(LOG_TAG, "%s", __func__);
438+}
439+
425440 EXPORT_SYMBOL const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE = {
426441 sizeof(bt_vendor_interface_t),
427442 bt_vendor_init,
428443 bt_vendor_op,
429444 bt_vendor_cleanup,
445+ ssr_cleanup,
430446 };
--- a/vendor_libs/test_vendor_lib/src/hci_transport.cc
+++ b/vendor_libs/test_vendor_lib/src/hci_transport.cc
@@ -23,8 +23,8 @@
2323 #include "base/thread_task_runner_handle.h"
2424
2525 extern "C" {
26+#include <inttypes.h>
2627 #include <sys/socket.h>
27-
2828 #include "stack/include/hcidefs.h"
2929 #include "osi/include/log.h"
3030 } // extern "C"
@@ -105,7 +105,6 @@ void HciTransport::OnFileCanWriteWithoutBlocking(int fd) {
105105 CHECK(fd == GetVendorFd());
106106 if (!outbound_events_.empty()) {
107107 base::TimeTicks current_time = base::TimeTicks::Now();
108- auto it = outbound_events_.begin();
109108 // Check outbound events for events that can be sent, i.e. events with a
110109 // timestamp before the current time. Stop sending events when
111110 // |packet_stream_| fails writing.
@@ -148,7 +147,7 @@ void HciTransport::PostDelayedEventResponse(std::unique_ptr<EventPacket> event,
148147 PostEventResponse(std::move(event));
149148 }
150149
151- LOG_INFO(LOG_TAG, "Posting event response with delay of %lld ms.",
150+ LOG_INFO(LOG_TAG, "Posting event response with delay of %" PRId64 " ms.",
152151 delay.InMilliseconds());
153152
154153 AddEventToOutboundEvents(