initial commit

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@3 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-06-08 23:54:24 +00:00
parent b1c00dcd0a
commit 9cb0b933e2
47 changed files with 3425 additions and 0 deletions

20
src/iochannel.h Normal file
View file

@ -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