mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
initial commit
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@3 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b1c00dcd0a
commit
9cb0b933e2
47 changed files with 3425 additions and 0 deletions
20
src/iochannel.h
Normal file
20
src/iochannel.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue