From 0defdfb5607889c35fdefff4af31eb8b0ae0cbcf Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 31 Jul 2007 22:44:53 +0000 Subject: A lot of updates, all necessary to get the native protocol ported: * add an int64_t argument to pa_asyncmsgq because it is very difficult to pass 64 values otherwise * simplify subclassing in pa_object * s/drop/unlink/ at some places * port the native protocol to the lock-free core (not tested, compiles fine) * move synchronisation of playback streams into pa_sink_input * add "start_corked" field to pa_sink_input_new_data * allow casting of NULL values in pa_object git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1562 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/tests/asyncmsgq-test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/tests/asyncmsgq-test.c') diff --git a/src/tests/asyncmsgq-test.c b/src/tests/asyncmsgq-test.c index 847d5be1..baf93a0c 100644 --- a/src/tests/asyncmsgq-test.c +++ b/src/tests/asyncmsgq-test.c @@ -49,7 +49,7 @@ static void the_thread(void *_q) { do { int code = 0; - pa_assert_se(pa_asyncmsgq_get(q, NULL, &code, NULL, NULL, 1) == 0); + pa_assert_se(pa_asyncmsgq_get(q, NULL, &code, NULL, NULL, NULL, 1) == 0); switch (code) { @@ -85,22 +85,22 @@ int main(int argc, char *argv[]) { pa_assert_se(t = pa_thread_new(the_thread, q)); printf("Operation A post\n"); - pa_asyncmsgq_post(q, NULL, OPERATION_A, NULL, NULL, NULL); + pa_asyncmsgq_post(q, NULL, OPERATION_A, NULL, 0, NULL, NULL); pa_thread_yield(); printf("Operation B post\n"); - pa_asyncmsgq_post(q, NULL, OPERATION_B, NULL, NULL, NULL); + pa_asyncmsgq_post(q, NULL, OPERATION_B, NULL, 0, NULL, NULL); pa_thread_yield(); printf("Operation C send\n"); - pa_asyncmsgq_send(q, NULL, OPERATION_C, NULL, NULL); + pa_asyncmsgq_send(q, NULL, OPERATION_C, NULL, 0, NULL); pa_thread_yield(); printf("Quit post\n"); - pa_asyncmsgq_post(q, NULL, QUIT, NULL, NULL, NULL); + pa_asyncmsgq_post(q, NULL, QUIT, NULL, 0, NULL, NULL); pa_thread_free(t); -- cgit