summaryrefslogtreecommitdiffstats
path: root/src/socket-client.h
blob: 76126aee98a1d30feb8e70ab9c21aeec9fe36785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef foosocketclienthfoo
#define foosocketclienthfoo

#include <inttypes.h>
#include "mainloop-api.h"
#include "iochannel.h"

struct pa_socket_client;

struct pa_socket_client* pa_socket_client_new_ipv4(struct pa_mainloop_api *m, uint32_t address, uint16_t port);
struct pa_socket_client* pa_socket_client_new_unix(struct pa_mainloop_api *m, const char *filename);

void pa_socket_client_free(struct pa_socket_client *c);

void pa_socket_client_set_callback(struct pa_socket_client *c, void (*on_connection)(struct pa_socket_client *c, struct pa_iochannel*io, void *userdata), void *userdata);

#endif