summaryrefslogtreecommitdiff
path: root/axfer/misc.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2018-11-13 15:41:13 +0900
committerTakashi Iwai <tiwai@suse.de>2018-11-13 12:04:19 +0100
commita452b9823540ca8d34579f61045be5a5a4073aa7 (patch)
tree3cdc566b25e3d28d13eb8ce717cf62984976ee3e /axfer/misc.h
parent6c81444a529d65c492b1fe9afd129463aadf2526 (diff)
downloadalsa-utils-a452b9823540ca8d34579f61045be5a5a4073aa7.tar.gz
axfer: add an entry point for this command
This commit adds a new command, 'axfer' ('ALSA transfer'), to transfer data frames described in asound.h. This command is intended to replace current aplay. The most of features and command line parameters come from aplay as much as possible, while it has more better feature and code to maintain. This commit adds an entry point for this command. Current option system of aplay is still available, while this command has a sub-command system like commands in iproute2. Currently, two sub-commands are supported; 'list' and 'transfer'. The 'list' sub-command has the same effect as '-l' and '-L' options of aplay. The 'transfer' sub-command has the same effect as the main feature of aplay. For the sub-command system, an option for stream direction is required; '-P' for playback and '-C' for capture. If you create symbolic links to this binary for aplay/arecord, please execute: $ ln -s axfer aplay $ ln -s axfer arecord Actual code for each sub-command will be implemented in later commits. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'axfer/misc.h')
-rw-r--r--axfer/misc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/axfer/misc.h b/axfer/misc.h
new file mode 100644
index 0000000..7c8bfb3
--- /dev/null
+++ b/axfer/misc.h
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0
+//
+// misc.h - a header file for miscellaneous tools.
+//
+// Copyright (c) 2018 Takashi Sakamoto <o-takashi@sakamocchi.jp>
+//
+// Licensed under the terms of the GNU General Public License, version 2.
+
+#ifndef __ALSA_UTILS_AXFER_MISC__H_
+#define __ALSA_UTILS_AXFER_MISC__H_
+
+#include <gettext.h>
+
+#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
+
+#endif