mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
Add a new meta command ".ifexists" to the CLI language, to execute commands only if a specified file exists. Original patch from cjvdb. Closes #36
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1456 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
4d88fcd59d
commit
d949983845
3 changed files with 73 additions and 13 deletions
|
|
@ -258,7 +258,7 @@ void pa_pdispatch_register_reply(pa_pdispatch *pd, uint32_t tag, int timeout, pa
|
|||
struct timeval tv;
|
||||
assert(pd && pd->ref >= 1 && cb);
|
||||
|
||||
r = pa_xmalloc(sizeof(struct reply_info));
|
||||
r = pa_xnew(struct reply_info, 1);
|
||||
r->pdispatch = pd;
|
||||
r->callback = cb;
|
||||
r->userdata = userdata;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue