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

Commit 65a8dfd7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add Rust bindings" am: 84bc09bf am: 3b03a3d5 am: 0de4be48

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1532176

Change-Id: I780ab57ccb47551aa185bf258adeee5f129e0486
parents 950c2cea 0de4be48
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>