mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
add new function pa_iochannel_socket_is_local()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2534 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
3b691c25a1
commit
f4e2750977
2 changed files with 15 additions and 0 deletions
|
|
@ -424,3 +424,16 @@ int pa_iochannel_get_send_fd(pa_iochannel *io) {
|
|||
|
||||
return io->ofd;
|
||||
}
|
||||
|
||||
pa_bool_t pa_iochannel_socket_is_local(pa_iochannel *io) {
|
||||
pa_assert(io);
|
||||
|
||||
if (pa_socket_is_local(io->ifd))
|
||||
return TRUE;
|
||||
|
||||
if (io->ifd != io->ofd)
|
||||
if (pa_socket_is_local(io->ofd))
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue