summaryrefslogtreecommitdiff
path: root/src/test-canberra.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-05-27 11:32:37 +0000
committerLennart Poettering <lennart@poettering.net>2008-05-27 11:32:37 +0000
commite3a1fe4f5f7714aa972f3cf7b9803636ffa853f0 (patch)
treeb6a0ad7c828f643d531ae9f74afe08c3866ebfe1 /src/test-canberra.c
parent7ac8038c3690eb5547cfdff83235f3636f87c303 (diff)
downloadlibcanberra-e3a1fe4f5f7714aa972f3cf7b9803636ffa853f0.tar.gz
make the whole mess compile
git-svn-id: file:///home/lennart/svn/public/libcanberra/trunk@15 01b60673-d06a-42c0-afdd-89cb8e0f78ac
Diffstat (limited to 'src/test-canberra.c')
-rw-r--r--src/test-canberra.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test-canberra.c b/src/test-canberra.c
index 4a379a3..f423ffd 100644
--- a/src/test-canberra.c
+++ b/src/test-canberra.c
@@ -26,15 +26,16 @@
#endif
#include <unistd.h>
+#include <stdlib.h>
#include "canberra.h"
int main(int argc, char *argv[]) {
- ca_context_t *c;
+ ca_context *c;
int id = 4711;
- ca_context_new(&c);
+ ca_context_create(&c);
/* Initialize a few meta variables for the following play()
* calls. They stay valid until they are overwritten with
@@ -43,7 +44,7 @@ int main(int argc, char *argv[]) {
CA_PROP_APPLICATION_NAME, "An example",
CA_PROP_APPLICATION_ID, "org.freedesktop.libcanberra.Test",
CA_PROP_MEDIA_LANGUAGE, "de_DE",
- CA_PROP_EVENT_X11_DISPLAY, getenv("DISPLAY"),
+ CA_PROP_WINDOW_X11_DISPLAY, getenv("DISPLAY"),
NULL);
/* .. */