diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-04-20 19:50:42 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-04-20 19:50:42 +0000 |
commit | 33a35b6f2ef6edbf0e2b680c7883616bcfeb2728 (patch) | |
tree | d95dd461d1cf9bc411e9b95e6633495df5817751 /src/tests | |
parent | 33cb5897e17e42e07512452cea587c2b1ffbeaba (diff) |
update to recent changes of proplist api
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2279 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/proplist-test.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/tests/proplist-test.c b/src/tests/proplist-test.c index b88f4e5e..5f7a78f3 100644 --- a/src/tests/proplist-test.c +++ b/src/tests/proplist-test.c @@ -28,25 +28,26 @@ #include <pulse/proplist.h> #include <pulse/xmalloc.h> #include <pulsecore/macro.h> +#include <pulsecore/core-util.h> int main(int argc, char*argv[]) { pa_proplist *a, *b; char *s, *t; a = pa_proplist_new(); - pa_assert_se(pa_proplist_puts(a, PA_PROP_MEDIA_TITLE, "Brandenburgische Konzerte") == 0); - pa_assert_se(pa_proplist_puts(a, PA_PROP_MEDIA_ARTIST, "Johann Sebastian Bach") == 0); + pa_assert_se(pa_proplist_sets(a, PA_PROP_MEDIA_TITLE, "Brandenburgische Konzerte") == 0); + pa_assert_se(pa_proplist_sets(a, PA_PROP_MEDIA_ARTIST, "Johann Sebastian Bach") == 0); b = pa_proplist_new(); - pa_assert_se(pa_proplist_puts(b, PA_PROP_MEDIA_TITLE, "Goldbergvariationen") == 0); - pa_assert_se(pa_proplist_put(b, PA_PROP_MEDIA_ICON, "\0\1\2\3\4\5\6\7", 8) == 0); + pa_assert_se(pa_proplist_sets(b, PA_PROP_MEDIA_TITLE, "Goldbergvariationen") == 0); + pa_assert_se(pa_proplist_set(b, PA_PROP_MEDIA_ICON, "\0\1\2\3\4\5\6\7", 8) == 0); - pa_proplist_merge(a, b); + pa_proplist_update(a, PA_UPDATE_MERGE, b); pa_assert_se(!pa_proplist_gets(a, PA_PROP_MEDIA_ICON)); printf("%s\n", pa_strnull(pa_proplist_gets(a, PA_PROP_MEDIA_TITLE))); - pa_assert_se(pa_proplist_remove(b, PA_PROP_MEDIA_TITLE) == 0); + pa_assert_se(pa_proplist_unset(b, PA_PROP_MEDIA_TITLE) == 0); s = pa_proplist_to_string(a); t = pa_proplist_to_string(b); |