mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 17:35:42 +01:00
89e746368c
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>
11 lines
352 B
C
11 lines
352 B
C
#ifndef UTILS_H_INCLUDED
|
|
#define UTILS_H_INCLUDED
|
|
|
|
#define ARRAY_SIZE(a) (sizeof(a) / sizeof *(a))
|
|
|
|
unsigned int get_mbs_width(const char *s);
|
|
unsigned int get_max_mbs_width(const char *const *s, unsigned int count);
|
|
const char *mbs_at_width(const char *s, int *width, int dir);
|
|
char *read_file(const char *file_name, unsigned int *file_size);
|
|
|
|
#endif
|