summaryrefslogtreecommitdiff
path: root/streamer.h
diff options
context:
space:
mode:
authorbbergeron <[email protected]>2024-04-03 17:32:01 -0400
committerbbergeron <[email protected]>2024-04-03 17:32:01 -0400
commitc1cb78d574c0429aa5e3ff3a2b3886e4bc153212 (patch)
treebf68806bcbddcafafc015b28c25550ea457eeecc /streamer.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 'streamer.h')
-rw-r--r--streamer.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/streamer.h b/streamer.h
new file mode 100644
index 0000000..b10a2af
--- /dev/null
+++ b/streamer.h
@@ -0,0 +1,22 @@
+#ifndef STREAMING_H_
+#define STREAMING_H_
+
+#include "common.h"
+
+/**
+ * An opaque data structure used to initialize and control a threaded HLS
+ * streamer. Please review 'struct StreamerOpt' for runtime initialisation
+ * parameters.
+ */
+typedef struct Streamer Streamer;
+
+Streamer *streamer_init (const struct StreamerOpt *opt);
+int streamer_push (Streamer *streamer, const char *url, unsigned int id);
+int streamer_pop (Streamer *streamer, unsigned int id);
+void streamer_skip (Streamer *streamer);
+void streamer_pause (Streamer *streamer);
+void streamer_resume (Streamer *streamer);
+void streamer_free (Streamer *streamer);
+int streamer_info (Streamer *streamer, struct StateInfo *info);
+
+#endif // STREAMING_H_