mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
fixes in callback code on object destruction simple protocol git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@52 fefdeb5f-60dc-0310-8127-8f9354f1896f
19 lines
685 B
C
19 lines
685 B
C
#ifndef foosocketclienthfoo
|
|
#define foosocketclienthfoo
|
|
|
|
#include <inttypes.h>
|
|
#include "mainloop-api.h"
|
|
#include "iochannel.h"
|
|
|
|
/* It is safe to destroy the calling socket_client object from the callback */
|
|
|
|
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
|