From c1cb78d574c0429aa5e3ff3a2b3886e4bc153212 Mon Sep 17 00:00:00 2001 From: bbergeron Date: Wed, 3 Apr 2024 17:32:01 -0400 Subject: Reset Git repo and use a pseudonym to sign commits I used to sign my commits with my real name and my personal email address, which I wanted scrubbed off the "B." pseudosphere. Re-creating a new git repository was safer than simpler than re-writing the history (although the latter could've also worked but, oh well). --- daemon.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 daemon.h (limited to 'daemon.h') diff --git a/daemon.h b/daemon.h new file mode 100644 index 0000000..d3ea5d0 --- /dev/null +++ b/daemon.h @@ -0,0 +1,29 @@ +#ifndef DAEMON_H_ +#define DAEMON_H_ + +#include "common.h" + +/** + * Functions related to client-daemon IPC over a unix-domain socket. + */ + +/* Servers symbols */ +extern int daemon_run; + +/** + * Allocate a cybd streamer and kickstart the cybd daemon even loop. This + * function is blocking and thread-unsafe due to its interaction with the global + * daemon_run variable. This function returns 0 on success or -1 on failure. + */ +int daemon_start (int fd, const struct StreamerOpt *opts); + +/* Client symbols */ +int daemon_push (int fd, const char *track, unsigned int index); +int daemon_pop (int fd, unsigned int index); +int daemon_skip (int fd); +int daemon_pause (int fd); +int daemon_resume (int fd); +int daemon_kill (int fd); +int daemon_query (int fd, struct StateInfo *entries); + +#endif // DAEMON_H_ -- cgit v1.2.3