X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftest%2Fexample.c;h=393b7820efef6ea0dc7f5d1ee9a893dffe7a4817;hb=5d98fafe59a4b2795bc3507fa0ddf7f2511b9a9a;hp=c07b1268c6a2d271b3949028c18e98982f563140;hpb=fda63ad40b874933e2342a1f2f3d6f4b642d12ff;p=deb_shairplay.git diff --git a/src/test/example.c b/src/test/example.c index c07b126..393b782 100644 --- a/src/test/example.c +++ b/src/test/example.c @@ -67,7 +67,7 @@ audio_destroy(void *cls, void *session) } static void -raop_log_callback(int level, const char *msg) +raop_log_callback(void *cls, int level, const char *msg) { printf("RAOP LOG(%d): %s\n", level, msg); } @@ -92,9 +92,9 @@ main(int argc, char *argv[]) raop_cbs.audio_flush = audio_flush; raop_cbs.audio_destroy = audio_destroy; - raop = raop_init_from_keyfile(&raop_cbs, "airport.key"); + raop = raop_init_from_keyfile(10, &raop_cbs, "airport.key", NULL); raop_set_log_level(raop, RAOP_LOG_DEBUG); - raop_set_log_callback(raop, &raop_log_callback); + raop_set_log_callback(raop, &raop_log_callback, NULL); raop_start(raop, &raop_port, hwaddr, sizeof(hwaddr), "test"); dnssd = dnssd_init(NULL);