pulse: hide the pa_proplist implementation

Hide the proplist implementation.
Add some more methods to update the proplist
Make sure our integration functions only use exported symbols
so that they even work against the original pulse implementations
in case they are loaded first.

Fixes #236
This commit is contained in:
Wim Taymans 2020-05-08 14:16:25 +02:00
parent b53cc6feb8
commit 4e44da6c4b
4 changed files with 47 additions and 16 deletions

View file

@ -168,13 +168,11 @@ do { \
#define PA_FAIL_RETURN_NULL(context, error) \
PA_FAIL_RETURN_ANY(context, error, NULL)
struct pa_proplist {
struct pw_properties *props;
};
pa_proplist* pa_proplist_new_props(struct pw_properties *props);
pa_proplist* pa_proplist_new_dict(struct spa_dict *dict);
int pa_proplist_update_dict(pa_proplist *p, struct spa_dict *dict);
int pw_properties_update_proplist(struct pw_properties *props, const pa_proplist *p);
struct pa_io_event {
struct spa_source *source;