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

Commit 83c525d5 authored by Ethan Chen's avatar Ethan Chen Committed by Bernhard Thoben
Browse files

kitakami-common: Add shim for libbase LogMessage functions

Change-Id: I4d1db75e5407586c9b69d94803af0ef9a9a91037
parent a1106e44
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -220,6 +220,7 @@ PRODUCT_PACKAGES += \

# IMS
PRODUCT_PACKAGES += \
    libbase_shim \
    libshims_ims \
    libshims_boringssl

ims/Android.bp

0 → 100644
+6 −0
Original line number Diff line number Diff line
cc_library {
    name: "libbase_shim",
    srcs: ["logging.cpp"],
    shared_libs: ["libbase"],
    vendor: true
}

ims/logging.cpp

0 → 100644
+12 −0
Original line number Diff line number Diff line
#include <android-base/logging.h>

extern "C" void _ZN7android4base10LogMessageC1EPKcjNS0_5LogIdENS0_11LogSeverityES3_i(
        const char* file, unsigned int line, android::base::LogId id,
        android::base::LogSeverity severity, const char* tag, int error);

extern "C" void _ZN7android4base10LogMessageC1EPKcjNS0_5LogIdENS0_11LogSeverityEi(
        const char* file, unsigned int line, android::base::LogId id,
        android::base::LogSeverity severity, int error) {
    _ZN7android4base10LogMessageC1EPKcjNS0_5LogIdENS0_11LogSeverityES3_i(file,
            line, id, severity, nullptr, error);
}