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

Commit d7c177ec authored by Thomas Leu's avatar Thomas Leu Committed by Android (Google) Code Review
Browse files

Merge "Fix potentially misleading safety comment." into main

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