diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-06-16 18:45:17 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-06-16 18:45:17 +0000 |
commit | 30a88002105f562a1420520b8c85cc8cffd2f4fa (patch) | |
tree | 95fca0b31795f0d3145b95cd0a98a9121719bfb8 /src/pulsecore/socket-util.h | |
parent | 2af243305fd33213280e1794ff2397a82481ec27 (diff) |
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
Diffstat (limited to 'src/pulsecore/socket-util.h')
-rw-r--r-- | src/pulsecore/socket-util.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <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 |