aboutsummaryrefslogtreecommitdiffstats
path: root/libgamepad.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-25 14:28:52 +0200
committerMattias Andrée <maandree@kth.se>2022-07-25 14:28:52 +0200
commit86610e5796cdf65b383c7612bc069bbc2c24cebf (patch)
tree292c7c9eb172adecef439f6740a7c7e27a4c8111 /libgamepad.h
parentlibgamepad_open_superdevice.c: do not change errno on success (diff)
downloadlibgamepad-86610e5796cdf65b383c7612bc069bbc2c24cebf.tar.gz
libgamepad-86610e5796cdf65b383c7612bc069bbc2c24cebf.tar.bz2
libgamepad-86610e5796cdf65b383c7612bc069bbc2c24cebf.tar.xz
Add support for audio devices
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libgamepad.h')
-rw-r--r--libgamepad.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgamepad.h b/libgamepad.h
index 5b6c46c..46a09e2 100644
--- a/libgamepad.h
+++ b/libgamepad.h
@@ -339,6 +339,15 @@ int libgamepad_open_superdevice(struct libgamepad_superdevice *, const char *);
*/
void libgamepad_close_superdevice(struct libgamepad_superdevice *);
+/**
+ * Search for sound devices built into or attached a device
+ *
+ * @param syspath The superdevice's path in /sys
+ * @param cardsp Output parameter for a list of sound card indices
+ * @return The number of found sound cards, -1 on failure
+ */
+ssize_t libgamepad_find_sound_devices(const char *, size_t **);
+
/**
* Create a device attachment monitor