diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-06-08 23:54:24 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-06-08 23:54:24 +0000 |
commit | 9cb0b933e260008c6a03e24a4a149f726b8d86b2 (patch) | |
tree | b54651bafe32d1a817e779f884d1628176465bf0 /src/iochannel.h | |
parent | b1c00dcd0ae51d201f772e7f5fa61acae436a2cf (diff) |
initial commit
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@3 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/iochannel.h')
-rw-r--r-- | src/iochannel.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/iochannel.h b/src/iochannel.h new file mode 100644 index 00000000..f97fabba --- /dev/null +++ b/src/iochannel.h @@ -0,0 +1,20 @@ +#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 |