mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
21 lines
595 B
C
21 lines
595 B
C
|
|
#ifndef fooiochannelhfoo
|
||
|
|
#define fooiochannelhfoo
|
||
|
|
|
||
|
|
#include <sys/types.h>
|
||
|
|
#include "mainloop.h"
|
||
|
|
|
||
|
|
struct iochannel;
|
||
|
|
|
||
|
|
struct iochannel* iochannel_new(struct mainloop*m, int ifd, int ofd);
|
||
|
|
void iochannel_free(struct iochannel*io);
|
||
|
|
|
||
|
|
ssize_t iochannel_write(struct iochannel*io, const void*data, size_t l);
|
||
|
|
ssize_t iochannel_read(struct iochannel*io, void*data, size_t l);
|
||
|
|
|
||
|
|
int iochannel_is_readable(struct iochannel*io);
|
||
|
|
int iochannel_is_writable(struct iochannel*io);
|
||
|
|
|
||
|
|
void iochannel_set_callback(struct iochannel*io, void (*callback)(struct iochannel*io, void *userdata), void *userdata);
|
||
|
|
|
||
|
|
#endif
|