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

18
src/socket-server.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef foosocketserverhfoo
#define foosocketserverhfoo
#include <inttypes.h>
#include "mainloop.h"
#include "iochannel.h"
struct socket_server;
struct socket_server* socket_server_new(struct mainloop *m, int fd);
struct socket_server* socket_server_new_unix(struct mainloop *m, const char *filename);
struct socket_server* socket_server_new_ipv4(struct mainloop *m, uint32_t address, uint16_t port);
void socket_server_free(struct socket_server*s);
void socket_server_set_callback(struct socket_server*s, void (*on_connection)(struct socket_server*s, struct iochannel *io, void *userdata), void *userdata);
#endif