summaryrefslogtreecommitdiffstats
path: root/polyp/iochannel.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/iochannel.c')
-rw-r--r--polyp/iochannel.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/polyp/iochannel.c b/polyp/iochannel.c
index 1aa70b93..72bdac20 100644
--- a/polyp/iochannel.c
+++ b/polyp/iochannel.c
@@ -229,3 +229,14 @@ int pa_iochannel_socket_set_sndbuf(struct pa_iochannel *io, size_t l) {
assert(io);
return pa_socket_set_sndbuf(io->ofd, l);
}
+
+void pa_iochannel_force_unreadable(struct pa_iochannel *io) {
+ assert(io);
+ io->readable = 0;
+ enable_mainloop_sources(io);
+}
+
+void pa_iochannel_force_unwritable(struct pa_iochannel *io) {
+ io->writable = 0;
+ enable_mainloop_sources(io);
+}