summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-ApiHat.h
diff options
context:
space:
mode:
Diffstat (limited to 'alsa-binding/Alsa-ApiHat.h')
-rw-r--r--alsa-binding/Alsa-ApiHat.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/alsa-binding/Alsa-ApiHat.h b/alsa-binding/Alsa-ApiHat.h
index eaef9c7..6987448 100644
--- a/alsa-binding/Alsa-ApiHat.h
+++ b/alsa-binding/Alsa-ApiHat.h
@@ -38,6 +38,9 @@
#define CONTROL_MAXPATH_LEN 255
#endif
+#define NO_CARD_SELECTED -1
+#define NO_DEVICE_SELECTED -1
+
typedef enum {
QUERY_QUIET =0,
QUERY_COMPACT =1,
@@ -46,15 +49,25 @@ typedef enum {
} queryModeE;
typedef enum {
- INFO_BY_DEVID,
- INFO_BY_PATH
-} InfoGetT;
-
-typedef enum {
ACTION_SET,
ACTION_GET
} ActionSetGetT;
+// structure to store card
+typedef struct {
+ int cardNb;
+ char *cardPath;
+ char *cardId;
+ char *cardShortName;
+ char *cardLongName;
+ char *cardDriver;
+ char *cardMixerName;
+ char *cardComponents;
+ int playbackDeviceNb;
+ char *playbackDeviceId;
+ char *playbackDeviceName;
+} queryCardInfo;
+
// generic structure to pass parsed query values
typedef struct {
const char *devid;