Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 397c9b91 authored by Chris Manton's avatar Chris Manton
Browse files

legacy: Extract osi_compat from osi lib

These are too platform specific or may be handled
by other libraries

pid_t gettid(void) throw();
size_t strlcpy(char* dst, const char* src, size_t siz);
size_t strlcat(char* dst, const char* src, size_t siz);

Bug: 193830619
Tag: #refactor
Test: gd/cert/run

Change-Id: Ia41b07f81cffb1c055dee70fba0d71f950397b8e
parent 8f47f483
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -45,6 +45,13 @@ cc_test_library {
    },
}

filegroup {
  name: "OsiCompatSources",
  srcs: [
    "src/compat.cc",
  ],
}

// libosi static library for target
cc_library_static {
    name: "libosi",
@@ -52,12 +59,12 @@ cc_library_static {
    // TODO(mcchou): Remove socket_utils sources after platform specific
    // dependencies are abstracted.
    srcs: [
        ":OsiCompatSources",
        "src/alarm.cc",
        "src/allocation_tracker.cc",
        "src/allocator.cc",
        "src/array.cc",
        "src/buffer.cc",
        "src/compat.cc",
        "src/config.cc",
        "src/fixed_queue.cc",
        "src/future.cc",
+1 −0
Original line number Diff line number Diff line
@@ -1012,6 +1012,7 @@ cc_test {
        "BluetoothGeneratedPackets_h",
    ],
    srcs: [
        ":OsiCompatSources",
        ":TestMockBta",
        ":TestMockBtif",
        ":TestMockHci",