]> code.delx.au - pulseaudio/blob - src/socket-client.h
main part of the native protocol
[pulseaudio] / src / socket-client.h
1 #ifndef foosocketclienthfoo
2 #define foosocketclienthfoo
3
4 #include <inttypes.h>
5 #include "mainloop-api.h"
6 #include "iochannel.h"
7
8 struct socket_client;
9
10 struct socket_client* socket_client_new_ipv4(struct pa_mainloop_api *m, uint32_t address, uint16_t port);
11 struct socket_client* socket_client_new_unix(struct pa_mainloop_api *m, const char *filename);
12
13 void socket_client_free(struct socket_client *c);
14
15 void socket_client_set_callback(struct socket_client *c, void (*on_connection)(struct socket_client *c, struct iochannel*io, void *userdata), void *userdata);
16
17 #endif