From 9cb0b933e260008c6a03e24a4a149f726b8d86b2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 8 Jun 2004 23:54:24 +0000 Subject: initial commit git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@3 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/source.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/source.h (limited to 'src/source.h') diff --git a/src/source.h b/src/source.h new file mode 100644 index 00000000..3beb3f96 --- /dev/null +++ b/src/source.h @@ -0,0 +1,30 @@ +#ifndef foosourcehfoo +#define foosourcehfoo + +struct source; + +#include +#include "core.h" +#include "sample.h" +#include "idxset.h" +#include "memblock.h" + +struct source { + char *name; + uint32_t index; + + struct core *core; + struct sample_spec sample_spec; + struct idxset *output_streams; + + void (*link_change_callback)(struct source*source, void *userdata); + void *userdata; +}; + +struct source* source_new(struct core *core, const char *name, const struct sample_spec *spec); +void source_free(struct source *s); + +/* Pass a new memory block to all output streams */ +void source_post(struct source*s, struct memchunk *b); + +#endif -- cgit