mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
context: add pa_context_load_cookie_from_file()
There is no function to load the authentication cookie for a context. You can only set environment variables. This patch adds pa_context_load_cookie_from_file(). Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
This commit is contained in:
parent
441a5a422c
commit
0157f4b25f
3 changed files with 20 additions and 0 deletions
|
|
@ -280,6 +280,14 @@ void pa_context_rttime_restart(pa_context *c, pa_time_event *e, pa_usec_t usec);
|
|||
* pa_stream_get_sample_spec(ss)); \since 0.9.20 */
|
||||
size_t pa_context_get_tile_size(pa_context *c, const pa_sample_spec *ss);
|
||||
|
||||
/** Load the authentication cookie from a file. This function is primarily
|
||||
* meant for PulseAudio's own tunnel modules, which need to load the cookie
|
||||
* from a custom location. Applications don't usually need to care about the
|
||||
* cookie at all, but if it happens that you know what the authentication
|
||||
* cookie is and your application needs to load it from a non-standard
|
||||
* location, feel free to use this function. \since 5.0 */
|
||||
int pa_context_load_cookie_from_file(pa_context *c, const char *cookie_file_path);
|
||||
|
||||
PA_C_DECL_END
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue