From 30a88002105f562a1420520b8c85cc8cffd2f4fa Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 16 Jun 2008 18:45:17 +0000 Subject: 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 --- src/pulsecore/socket-util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pulsecore/socket-util.h') diff --git a/src/pulsecore/socket-util.h b/src/pulsecore/socket-util.h index a0344c68..eeddf989 100644 --- a/src/pulsecore/socket-util.h +++ b/src/pulsecore/socket-util.h @@ -26,6 +26,9 @@ ***/ #include +#include + +#include 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 -- cgit