diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-05-02 01:25:22 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-05-02 01:25:22 +0000 |
commit | bfb2691fac92a3a6f44ea309b6969e8ed96b7711 (patch) | |
tree | 2fee5ba19072d2f1fe3d42747034dc8b2f057d21 /src/pulsecore/socket-client.h | |
parent | 06b9140e109a591529ec7229085fe138ce79a6d1 (diff) |
a few modernizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2346 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/socket-client.h')
-rw-r--r-- | src/pulsecore/socket-client.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pulsecore/socket-client.h b/src/pulsecore/socket-client.h index b1d58eff..41e8c3bd 100644 --- a/src/pulsecore/socket-client.h +++ b/src/pulsecore/socket-client.h @@ -34,17 +34,19 @@ struct sockaddr; typedef struct pa_socket_client pa_socket_client; +typedef void (*pa_socket_client_cb_t)(pa_socket_client *c, pa_iochannel*io, void *userdata); + pa_socket_client* pa_socket_client_new_ipv4(pa_mainloop_api *m, uint32_t address, uint16_t port); pa_socket_client* pa_socket_client_new_ipv6(pa_mainloop_api *m, uint8_t address[16], uint16_t port); pa_socket_client* pa_socket_client_new_unix(pa_mainloop_api *m, const char *filename); pa_socket_client* pa_socket_client_new_sockaddr(pa_mainloop_api *m, const struct sockaddr *sa, size_t salen); pa_socket_client* pa_socket_client_new_string(pa_mainloop_api *m, const char *a, uint16_t default_port); -void pa_socket_client_unref(pa_socket_client *c); pa_socket_client* pa_socket_client_ref(pa_socket_client *c); +void pa_socket_client_unref(pa_socket_client *c); -void pa_socket_client_set_callback(pa_socket_client *c, void (*on_connection)(pa_socket_client *c, pa_iochannel*io, void *userdata), void *userdata); +void pa_socket_client_set_callback(pa_socket_client *c, pa_socket_client_cb_t on_connection, void *userdata); -int pa_socket_client_is_local(pa_socket_client *c); +pa_bool_t pa_socket_client_is_local(pa_socket_client *c); #endif |