diff options
author | bbergeron <[email protected]> | 2024-04-03 17:32:01 -0400 |
---|---|---|
committer | bbergeron <[email protected]> | 2024-04-03 17:32:01 -0400 |
commit | c1cb78d574c0429aa5e3ff3a2b3886e4bc153212 (patch) | |
tree | bf68806bcbddcafafc015b28c25550ea457eeecc /daemon.h |
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).
Diffstat (limited to 'daemon.h')
-rw-r--r-- | daemon.h | 29 |
1 files changed, 29 insertions, 0 deletions
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_ |