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

Commit 8946b31b authored by Thomas Leu's avatar Thomas Leu
Browse files

Fix potentially misleading safety comment.

Copied verbatim from https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/native/+/26261779/comment/1f2a4ad4_56566142/.

Test: N/A

Change-Id: Ia4f8db801c65f3aa4309d2b06bcdbed67d3b3899
parent 427e3330
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -65,9 +65,9 @@ mod ffi {
///
///
/// # Safety
/// # Safety
///
///
/// This function is safe iff `callback` is a valid pointer to an `AIBinder` interface of type
/// The provided `callback` must be a valid pointer to an `AIBinder` interface of type
/// `IInputFlingerRustBootstrapCallback`. The pointer must have had its reference count manually
/// `IInputFlingerRustBootstrapCallback`, and the caller must give this function ownership of one
/// incremented using `AIBinder_incStrong`. See `binder::unstable_api::new_spibinder`.
/// strong refcount to the interface. See `binder::unstable_api::new_spibinder`.
unsafe fn create_inputflinger_rust(callback: *mut ffi::IInputFlingerRustBootstrapCallbackAIBinder) {
unsafe fn create_inputflinger_rust(callback: *mut ffi::IInputFlingerRustBootstrapCallbackAIBinder) {
    logger::init(
    logger::init(
        logger::Config::default()
        logger::Config::default()