2004-06-08 23:54:24 +00:00
|
|
|
#ifndef foopstreamhfoo
|
|
|
|
|
#define foopstreamhfoo
|
|
|
|
|
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
|
|
#include "packet.h"
|
|
|
|
|
#include "memblock.h"
|
|
|
|
|
#include "iochannel.h"
|
2004-06-23 23:17:30 +00:00
|
|
|
#include "mainloop-api.h"
|
2004-07-03 00:19:17 +00:00
|
|
|
#include "memchunk.h"
|
2004-06-08 23:54:24 +00:00
|
|
|
|
2004-07-03 23:35:12 +00:00
|
|
|
struct pa_pstream;
|
2004-06-08 23:54:24 +00:00
|
|
|
|
2004-07-03 23:35:12 +00:00
|
|
|
struct pa_pstream* pa_pstream_new(struct pa_mainloop_api *m, struct pa_iochannel *io);
|
|
|
|
|
void pa_pstream_free(struct pa_pstream*p);
|
2004-06-08 23:54:24 +00:00
|
|
|
|
2004-07-03 23:35:12 +00:00
|
|
|
void pa_pstream_set_send_callback(struct pa_pstream*p, void (*callback) (struct pa_pstream *p, void *userdata), void *userdata);
|
|
|
|
|
void pa_pstream_send_packet(struct pa_pstream*p, struct pa_packet *packet);
|
|
|
|
|
void pa_pstream_send_memblock(struct pa_pstream*p, uint32_t channel, int32_t delta, struct pa_memchunk *chunk);
|
2004-06-08 23:54:24 +00:00
|
|
|
|
2004-07-03 23:35:12 +00:00
|
|
|
void pa_pstream_set_recieve_packet_callback(struct pa_pstream *p, int (*callback) (struct pa_pstream *p, struct pa_packet *packet, void *userdata), void *userdata);
|
|
|
|
|
void pa_pstream_set_recieve_memblock_callback(struct pa_pstream *p, int (*callback) (struct pa_pstream *p, uint32_t channel, int32_t delta, struct pa_memchunk *chunk, void *userdata), void *userdata);
|
2004-06-20 01:12:13 +00:00
|
|
|
|
2004-07-03 23:35:12 +00:00
|
|
|
void pa_pstream_set_die_callback(struct pa_pstream *p, void (*callback)(struct pa_pstream *p, void *userdata), void *userdata);
|
2004-06-08 23:54:24 +00:00
|
|
|
|
|
|
|
|
#endif
|