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

Commit 1e7ec13c authored by Dan Stoza's avatar Dan Stoza Committed by gitbuildkicker
Browse files

libbinder: Add SafeInterface

Adds SafeInterface, a mechanism which will automatically translate
IInterface method calls into remote procedure calls, avoiding the need
to manually write parceling and unparceling code for each method.

Test: binderSafeInterfaceTest
Change-Id: I0fc7a6eee5528371f40b90d056404cb024166b23
(cherry picked from commit d630e520)
parent 20c8f1ea
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -71,6 +71,10 @@ cc_library {
        "libutils",
    ],

    export_include_dirs: [
        "include",
    ],

    clang: true,
    sanitize: {
        misc_undefined: ["integer"],
+621 −0

File added.

Preview size limit exceeded, changes collapsed.

+24 −0
Original line number Diff line number Diff line
@@ -80,3 +80,27 @@ cc_test {
        "libbase",
    ],
}

cc_test {
    name: "binderSafeInterfaceTest",
    srcs: ["binderSafeInterfaceTest.cpp"],

    cppflags: [
        "-Werror",
        "-Weverything",
        "-Wno-c++98-compat",
        "-Wno-c++98-compat-pedantic",
        "-Wno-global-constructors",
        "-Wno-padded",
        "-Wno-weak-vtables",
    ],

    cpp_std: "experimental",
    gnu_extensions: false,

    shared_libs: [
        "libbinder",
        "liblog",
        "libutils",
    ],
}
+514 −0

File added.

Preview size limit exceeded, changes collapsed.