2004-06-15 17:05:03 +00:00
|
|
|
#ifndef foosourceoutputhfoo
|
|
|
|
|
#define foosourceoutputhfoo
|
2004-06-08 23:54:24 +00:00
|
|
|
|
|
|
|
|
#include <inttypes.h>
|
2004-06-15 17:05:03 +00:00
|
|
|
|
2004-06-08 23:54:24 +00:00
|
|
|
#include "source.h"
|
|
|
|
|
#include "sample.h"
|
|
|
|
|
#include "memblockq.h"
|
|
|
|
|
|
2004-06-15 17:05:03 +00:00
|
|
|
struct source_output {
|
2004-06-08 23:54:24 +00:00
|
|
|
uint32_t index;
|
|
|
|
|
|
2004-06-15 17:05:03 +00:00
|
|
|
char *name;
|
2004-06-08 23:54:24 +00:00
|
|
|
struct source *source;
|
|
|
|
|
struct sample_spec spec;
|
|
|
|
|
|
2004-06-15 17:05:03 +00:00
|
|
|
void (*push)(struct source_output *o, struct memchunk *chunk);
|
|
|
|
|
void (*kill)(struct source_output* o);
|
|
|
|
|
|
|
|
|
|
void *userdata;
|
2004-06-08 23:54:24 +00:00
|
|
|
};
|
|
|
|
|
|
2004-06-15 17:05:03 +00:00
|
|
|
struct source_output* source_output_new(struct source *s, struct sample_spec *spec, const char *name);
|
|
|
|
|
void source_output_free(struct source_output* o);
|
2004-06-08 23:54:24 +00:00
|
|
|
|
2004-06-15 17:05:03 +00:00
|
|
|
void source_output_kill(struct source_output*o);
|
2004-06-14 20:30:50 +00:00
|
|
|
|
2004-06-18 17:12:50 +00:00
|
|
|
char *source_output_list_to_string(struct core *c);
|
|
|
|
|
|
2004-06-08 23:54:24 +00:00
|
|
|
#endif
|