History log of /system/bt/osi/include/list.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/list.h
9ca07091a1f07ea201cee0504dab6a1d7073d429 29-Nov-2016 Myles Watson <mylesgw@google.com> Reformat long comments before clang-format

Test: mma -j32
Change-Id: I86a2a4af9dcd22d675ca1f764bb2c9623d63edcc
/system/bt/osi/include/list.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/list.h
b2a292b5d8df2f359c38b0787bc01181225a9bc9 15-Oct-2016 Pavlin Radoslavov <pavlin@google.com> Renamed most C files to C++: *.c to *.cc

Also:
- Fixed C++ related compilation errors.
- Added missing 'extern "C"' guards in some of the header files.
- Added missing LOCAL_CPP_EXTENSION to Android.mk files.
- Added-back btif/src/btif_mce.cc and bta/mce/bta_mce_* to
btif/Android.mk and bta/Android.mk respectively.
- Fixed the alphabetical ordering of the *.cc files in some
of the Android.mk files.
- Added missing Copyright header to "osi/include/list.h"
- Updated "osi/src/wakelock.cc" to use C++ std::string
instead of dynamic allocation of C-style strings.

Test: code compilation, unit tests, and A2DP streaming
Change-Id: Ia2f7215ed9df32775c701b68fc86b09875b942c7
/system/bt/osi/include/list.h
d19e0785e662e640191a075eda07acce61c2aeda 15-Jul-2016 Marie Janssen <jamuraa@google.com> Use standard types, consistent ifdef style everywhere

Remove the typedefs in stack/include/bt_types.h

Use standard types everywhere.
Use standard style for #if statements:
- #if (VAR_NAME == TRUE)
- #if (VAR_NAME1 == TRUE && VAR_NAME2 == TRUE)
Use __func__ instead of __FUNCTION__
Fix some debug statements to use __func__

Update script to be less disruptive to aligned assignment blocks.

Change-Id: I8f8f068e6c26ce74fd3b3707e1e31fd0b919cdd0
/system/bt/osi/include/list.h
713993d1784ab7c23aee1fa3cf1ab8676cc0aa69 21-Apr-2016 Jakub Pawlowski <jpawlowski@google.com> Convert BTIF code from C to C++

Modifications required:
* added proper casting
* moved variable definitions before goto statements
* added 'extern "C"' markers where needed
* renamed 'operator' to 'operator_name'

Bug: 28485365
Change-Id: I903357967387207e678866c02e008f047f8263f6
/system/bt/osi/include/list.h
270f86f2985ffbf55527bdae2ba2bc3870540fed 06-Feb-2016 Jakub Pawlowski <jpawlowski@google.com> Add list_back_node method to osi list

Change-Id: I919ce97373701cbdea03b8228b3a90263d7ef180
/system/bt/osi/include/list.h
67f57c639e6dc2f302115017eb92c40dd306c15d 01-Feb-2016 Jakub Pawlowski <jpawlowski@google.com> Make list_foreach() even more useful

- Changed |callback| return type to list_node_t to be able to interrupt
iteration (to find specific elements for example).

Change-Id: I00eb83725d03e6f1aec239ae11eb19cf59af35a9
/system/bt/osi/include/list.h
760fb7083b1781c9519fb6a36e46d7ab5d5efb30 14-Jan-2016 Andre Eisenbach <eisenbach@google.com> Make list_foreach() more useful

- Changed |callback| return type to bool to be able to interrupt
iteration (to find specific elements for example).
- Added new |extra| parameter for |callback| so a pointer can be passed
in to receive output values or to pass in criteria etc.
- Also added unit tests.

Change-Id: Id1ddcbabf55292f701d0277f2a1e9ec261b9fbde
/system/bt/osi/include/list.h
8d43696bdd8ba17c19afc81af81d00e8d3dbf5a7 02-Mar-2015 Zach Johnson <zachoverflow@google.com> Move list function comments to the header file
/system/bt/osi/include/list.h
fbf89085bf308a98b00da77d1538539f6dd58604 13-Aug-2014 Sharvil Nanavati <sharvil@google.com> Switch to an epoll-based reactor implementation.

epoll is a much nicer interface that very closely matches the
reactor interface. It's also thread-safe which makes it a more
suitable choice for bluedroid. As a result of this change,
reactor_register and reactor_unregister are both thread-safe without
introducing any synchronization in user-space.
/system/bt/osi/include/list.h
f0e7c8b895c61104ce962b7c5e3705a32943d711 02-Jul-2014 Sharvil Nanavati <sharvil@google.com> A simple, thread-safe timer API for bluedroid.

Change-Id: I5fa21b48506e4d1d65da4b8bedbbf39e03dad559
/system/bt/osi/include/list.h
540e7cab4a9a47dc2d38f96e332e19d16dbfc1d2 25-Apr-2014 Sharvil Nanavati <sharvil@google.com> Add a singly linked list implementation for OSI.

Change-Id: Ifffd6f9eabee482a81b326c9cf8d06163aede0f4
/system/bt/osi/include/list.h