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

Commit 84bc09bf authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add Rust bindings"

parents 66c5a3a3 0d383299
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -354,3 +354,17 @@ cc_test {
    defaults: ["libcutils_test_static_defaults"],
    test_config: "KernelLibcutilsTest.xml",
}

rust_bindgen {
    name: "libcutils_bindgen",
    wrapper_src: "rust/cutils.h",
    crate_name: "cutils_bindgen",
    source_stem: "bindings",
    local_include_dirs: ["include"],
    bindgen_flags: [
        "--whitelist-function", "multiuser_get_app_id",
        "--whitelist-function", "multiuser_get_user_id",
        "--whitelist-function", "multiuser_get_uid",
        "--whitelist-var", "AID_USER_OFFSET",
    ],
}
+4 −0
Original line number Diff line number Diff line
#pragma once

#include <cutils/multiuser.h>
#include <private/android_filesystem_config.h>