summaryrefslogtreecommitdiffstats
path: root/src/polypcore/iochannel.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-24 15:12:42 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-24 15:12:42 +0000
commit3f264b2c4acfaaf8dd9c6b05526708a1d7648db0 (patch)
tree492a92e07c4b3274a81dd173167c4ba990175e9f /src/polypcore/iochannel.h
parenta1f5573313e888d39dbe4015bdd993ad9eccb92f (diff)
add support for authentication using SCM_CREDENTIALS
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@596 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polypcore/iochannel.h')
-rw-r--r--src/polypcore/iochannel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/polypcore/iochannel.h b/src/polypcore/iochannel.h
index 977fe2c3..617ce086 100644
--- a/src/polypcore/iochannel.h
+++ b/src/polypcore/iochannel.h
@@ -23,6 +23,9 @@
***/
#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+
#include <polyp/mainloop-api.h>
/* A wrapper around UNIX file descriptors for attaching them to the a
@@ -48,6 +51,14 @@ void pa_iochannel_free(pa_iochannel*io);
ssize_t pa_iochannel_write(pa_iochannel*io, const void*data, size_t l);
ssize_t pa_iochannel_read(pa_iochannel*io, void*data, size_t l);
+#ifdef SCM_CREDENTIALS
+int pa_iochannel_creds_supported(pa_iochannel *io);
+int pa_iochannel_creds_enable(pa_iochannel *io);
+
+ssize_t pa_iochannel_write_with_creds(pa_iochannel*io, const void*data, size_t l);
+ssize_t pa_iochannel_read_with_creds(pa_iochannel*io, void*data, size_t l, struct ucred *ucred, int *creds_valid);
+#endif
+
int pa_iochannel_is_readable(pa_iochannel*io);
int pa_iochannel_is_writable(pa_iochannel*io);
int pa_iochannel_is_hungup(pa_iochannel*io);