summaryrefslogtreecommitdiff
path: root/audiod.h
diff options
context:
space:
mode:
authorAndre Noll <maan@tuebingen.mpg.de>2026-11-23 23:56:00 +0100
committerAndre Noll <maan@tuebingen.mpg.de>2026-11-23 23:58:33 +0100
commit0c03d5e41026717f25288ca1e7af86e7c576b91d (patch)
tree44b078914a1f394c0edc51e805a52b3c7905f969 /audiod.h
parentcbbe3abf2eca134b9d539f8b92345410d7964b9a (diff)
parentcaafd2c1688f68e4782f37b7d4f3ff49578d667a (diff)
Merge topic branch t/audiod into masterHEADmaster
para_audiod improvements ------------------------ This fixes an old bug that crashes para_audiod, removes a bunch of unneeded cruft from audiod.c and has a few other audiod-related goodies. * t/audiod: audiod: Improve SI_decoder_flags handling. audiod: Reduce time string update frequency. audiod: Improve SI_audiod_status handling. audiod: Improve and rename close_stat_pipe(). audiod: Avoid unnecessary allocation/free. audiod: Only check for connections if socket is readable. audiod: Drop unnecessary call to clear_status_items(). audiod: Rename audiod_status_dump() -> dump_audiod_status_items(). audiod: Merge audiod_status_string() into its single caller. audiod: Move two functions and make them static. audiod: Fail if the local socket cannot be created. audiod: Remove compute_time_diff(). audiod: Fix --mode.
Diffstat (limited to 'audiod.h')
-rw-r--r--audiod.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/audiod.h b/audiod.h
index ef09a80a..e90cc289 100644
--- a/audiod.h
+++ b/audiod.h
@@ -6,13 +6,14 @@ extern int audiod_status;
/* defined in audiod.c */
struct btr_node *audiod_get_btr_root(void);
-__malloc char *audiod_get_decoder_flags(void);
-__malloc char *get_time_string(void);
bool uid_is_whitelisted(uid_t uid);
int client_write_bin(int fd, char *buf, size_t len, enum sb_designator band);
/* defined in audiod_command.c */
-void audiod_status_dump(bool force);
void close_stat_clients(void);
int dispatch_local_connection(int accept_fd);
void stat_client_write_item(int item_num);
+
+/** The possible values of the --mode option (const char *) */
+#define mode_string(mode) lls_enum_string_val((mode), \
+ lls_opt(LSG_AUDIOD_PARA_AUDIOD_OPT_MODE, lls_cmd(0, audiod_suite)))