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

Commit 399b367b authored by Joel Galenson's avatar Joel Galenson Committed by Automerger Merge Worker
Browse files

Merge "Migrate Rust libcutils bindings into librustutils." am: 0dd5dfed am: 2131274a

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

Change-Id: I217b9d337169d0cdc5291a924bf74ab09287f134
parents 406e39f4 2131274a
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -354,18 +354,3 @@ 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: [
        "--allowlist-function", "multiuser_get_app_id",
        "--allowlist-function", "multiuser_get_uid",
        "--allowlist-function", "multiuser_get_user_id",
        "--allowlist-var", "AID_KEYSTORE",
        "--allowlist-var", "AID_USER_OFFSET",
    ],
}

libcutils/rust/cutils.h

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
#pragma once

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