mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
add new function pa_mempool_is_shared() to test whether a memory pool is suitable for SHM data transfers
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1274 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
7e01b1c5bd
commit
fd3fe96ce5
2 changed files with 7 additions and 0 deletions
|
|
@ -497,6 +497,12 @@ int pa_mempool_get_shm_id(pa_mempool *p, uint32_t *id) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int pa_mempool_is_shared(pa_mempool *p) {
|
||||
assert(p);
|
||||
|
||||
return !!p->memory.shared;
|
||||
}
|
||||
|
||||
/* For recieving blocks from other nodes */
|
||||
pa_memimport* pa_memimport_new(pa_mempool *p, pa_memimport_release_cb_t cb, void *userdata) {
|
||||
pa_memimport *i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue