ad1e23d50e431fb82ff1b8d3ce02f64ca0c5a940 |
|
10-Dec-2016 |
Jack He <siyuanh@google.com> |
Remove extern "C" from header files Since change 290046, most files in system/bt is compiled as C++ source. Therefore, there is no longer a need for the extern "C" wrapper around includes that export symbols from those sources. The following python script is applied to each file in the directory: front = '#ifdef\s+__cplusplus\s+extern\s+"C"\s+{\s+#endif\s+' back = '#ifdef\s+__cplusplus\s+}\s+#endif' with open(sys.argv[1], "r") as f: data = f.read() data = re.sub(front, "", data) data = re.sub(back, "", data) print data through a shell script: for file in $(find . -name "*.h"); do python remove_cpp_extern_c.py $file > tmp cat tmp > $file rm tmp done with following files not edited: * stack/include/a2dp_* * include/bt_trace.h * embdrv/sbc/* Bug: 33492510 Test: Code compilation, BtFunhausMetricsTest, BtStressTest Change-Id: Iac21cdfb1924b50478dd0b82326e092602cbc9d4
/system/bt/osi/include/data_dispatcher.h
|
b55040cc6448a8847490da807d2b6362aa8cb8d9 |
|
19-Oct-2016 |
Myles Watson <mylesgw@google.com> |
osi: Apply clang-format cd osi/ clang-format -i --style=file include/*.h include/socket_utils/* src/*.cc \ src/socket_utils/* src/protos/* test/* Test: mma -j32 Change-Id: I659e586076f1e2ec8f687cd33f441700b8d1f823
/system/bt/osi/include/data_dispatcher.h
|
2b56e01a2d0ccf9eff58b24fb66c18280f95a680 |
|
26-May-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Replace hash_map in data_dispatcher with C++ unordered_map Change-Id: Ic8d99108fd557a1d994dcea5a2bf92aef98a0cac
/system/bt/osi/include/data_dispatcher.h
|
c196f214c5ae349ec2022f8d3cbaf56910b3b9f8 |
|
24-Sep-2015 |
Pavlin Radoslavov <pavlin@google.com> |
GKI cleanup - Moved GKI_get_os_tick_count() to OSI * Renamed function GKI_get_os_tick_count() to time_get_os_boottime_ms() and moved it to the OSI module: to the new file osi/src/time.c . The corresponding header file is osi/include/time.h * Added unit tests for function time_get_os_boottime_ms() in file osi/test/time_test.cpp * Removed "osi/include" from the list of paths to search for include files. This is needed, because file name collision of "time.h" in osi/include and the system <time.h> Change-Id: I934be0c8f392150a352947326546bcf8aa070f97
/system/bt/osi/include/data_dispatcher.h
|
a74fcdfe46726cf629ba6887cb6971bb2c4b8675 |
|
25-Mar-2015 |
Nitin Arora <niarora@codeaurora.org> |
Using generic format specifier for logging pointers This change uses generic format specifier for logging the pointers which can be 64 bit or 32 bit depending upon the system used for compilation. Also address of operator is used before casting a int variable to void pointer. Change-Id: Ie9dec408f3a5f674079f77c047d8192f65a004ca
/system/bt/osi/include/data_dispatcher.h
|
3605c802486424c2fe22b3474c941f224cd56419 |
|
30-Jul-2014 |
Zach Johnson <zachoverflow@google.com> |
Implement a data dispatcher. This will be useful at layer boundaries.
/system/bt/osi/include/data_dispatcher.h
|