25#define HOSTNAME_LEN 200
55#define NMAGICEVENTS (sizeof(magic_events) / sizeof(*magic_events))
76#define NEVENTS (event_names_size() + NMAGICEVENTS)
111 perror(
"calloc() rplay control");
161 fprintf(
stderr,
"Tried to load sounds before subsystem inited.\n");
170 perror(
"Failed building path to sound file");
182 "~/.ctwm-sounds.\n");
211 "name is invalid?\n",
ename);
236 fprintf(
stderr,
"BUG: play_sound() Sound should be initted already.\n");
size_t event_names_size(void)
int event_num_by_name(const char *ename)
void sound_clear_list(void)
static int sound_from_config
void sound_load_list(void)
static int need_sound_init
void sound_set_from_config(void)
int set_sound_event_name(const char *ename, const char *soundfile)
static int sound_magic_event_name2num(const char *name)
static char hostname[200]
static const char * magic_events[]
int set_sound_event(int snd, const char *soundfile)
void play_startup_sound(void)
void play_exit_sound(void)
void set_sound_host(char *host)
static char * trim_spaces(char *str)