]> git.alsa-project.org Git - alsa-utils.git/commit
alsamixer: added configuration file parser
authorbraph <braph93@gmx.de>
Thu, 3 Oct 2019 17:06:11 +0000 (19:06 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 1 Jul 2020 14:10:35 +0000 (16:10 +0200)
commit89e746368c5a9019b86647bb12e442f5c05b0279
treeefdfead1eaeca69920e85d5cca655421d47246fd
parent32dc22c2bf089d51a8d8e46d56cf57e0e99412bc
alsamixer: added configuration file parser

Added configparser.c and curskey.c:
  - Lines starting with arbitrary whitespace + '#' are comments
  - Words in a command name don't have a fixed order (toggle_mute is the
      same as mute_toggle)

Moved read_file() from textbox.c to utils.c, so configparser.c can make
use of it.

Added command line options:
  -f/-F to specify/disable configuration file
  -m/-M to enable/disable mouse

Signed-off-by: Benjamin Abendroth <braph93@gmx.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsamixer/Makefile.am
alsamixer/cli.c
alsamixer/configparser.c [new file with mode: 0644]
alsamixer/configparser.h [new file with mode: 0644]
alsamixer/curskey.c [new file with mode: 0644]
alsamixer/curskey.h [new file with mode: 0644]
alsamixer/mainloop.c
alsamixer/mainloop.h
alsamixer/textbox.c
alsamixer/utils.c
alsamixer/utils.h