]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/socket-util.h
export card information for sinks/sources and number of sinks/sources a profile would...
[pulseaudio] / src / pulsecore / socket-util.h
index a0344c68f90d87870463005e64e1106f72e92858..7a40285a142376790ab4e20b4e914a8516f5ee10 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef foosocketutilhfoo
 #define foosocketutilhfoo
 
-/* $Id$ */
-
 /***
   This file is part of PulseAudio.
 
@@ -26,6 +24,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 +40,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