add new functions pa_socket_is_local() and pa_socket_address_is_local()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2532 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-06-16 18:45:17 +00:00
parent 2af243305f
commit 30a8800210
2 changed files with 44 additions and 1 deletions

View file

@ -26,6 +26,9 @@
***/
#include <sys/types.h>
#include <sys/socket.h>
#include <pulsecore/macro.h>
void pa_socket_peer_to_string(int fd, char *c, size_t l);
@ -39,4 +42,7 @@ int pa_socket_set_rcvbuf(int fd, size_t l);
int pa_unix_socket_is_stale(const char *fn);
int pa_unix_socket_remove_stale(const char *fn);
pa_bool_t pa_socket_address_is_local(const struct sockaddr *sa);
pa_bool_t pa_socket_is_local(int fd);
#endif