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

Commit b0f043a3 authored by Dan Albert's avatar Dan Albert
Browse files

Fix C compatibility in new API.

I fixed all these in AOSP, but this API isn't in AOSP yet and is also
missing the typedef needed for C compat.

Also removed the duplicate decl, and the unnecessary __INTRODUCED_IN
that either does nothing for types, or is actively harmful (pretty
sure it does nothing), and the accompanying incorrect "introduced in"
docs.

Flag: no
Bug: None
Test: treehugger
Change-Id: I9432f1146288dcb691e5f317887791cc94b120fe
(cherry picked from commit 61118b30)
parent c1f905d1
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -59,17 +59,13 @@ typedef bool (*AInputReceiver_onKeyEvent)(void *_Null_unspecified context,
                                          AInputEvent *_Nonnull keyEvent)
                                          __INTRODUCED_IN(__ANDROID_API_V__);

struct AInputReceiverCallbacks;

struct AInputReceiver;
typedef struct AInputReceiverCallbacks AInputReceiverCallbacks;

/**
 * The InputReceiver that holds the reference to the registered input channel. This must be released
 * using AInputReceiver_release
 *
 * Available since API level 35.
 */
typedef struct AInputReceiver AInputReceiver __INTRODUCED_IN(__ANDROID_API_V__);
typedef struct AInputReceiver AInputReceiver;

/**
 * Registers an input receiver for an ASurfaceControl that will receive batched input event. For