Skip to content

Commit

Permalink
Flesh out the API doc for fbink_input_check
Browse files Browse the repository at this point in the history
Also returns allocated memory ;).
  • Loading branch information
NiLuJe committed May 12, 2024
1 parent fa5433b commit 03e912f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fbink.h
Original file line number Diff line number Diff line change
Expand Up @@ -1735,6 +1735,9 @@ FBINK_API FBInkInputDevice* fbink_input_scan(INPUT_DEVICE_TYPE_T match_types,

// Variant of the above that takes a filepath instead of scanning /dev/input/event*
// This is useful to handle hotplug events, for instance.
// Returns a pointer to an FBInkInputDevice struct.
// You *MUST* free the returned pointer after use (it's heap allocated).
// Returns NULL on failure (filepath cannot be read, or MINIMAL build w/o INPUT).
FBINK_API FBInkInputDevice* fbink_input_check(const char* filepath,
INPUT_DEVICE_TYPE_T match_types,
INPUT_DEVICE_TYPE_T exclude_types,
Expand Down

0 comments on commit 03e912f

Please sign in to comment.