From 9777a02c7540fdec145feb948b4bbf1cd44c3352 Mon Sep 17 00:00:00 2001 From: fulup Date: Sun, 13 Aug 2017 16:50:34 +0200 Subject: Fix AFB_MESSAGE with null arguments --- Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c | 5 ++--- Alsa-Plugin/Alsa-Policy-Hook/README.md | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'Alsa-Plugin') diff --git a/Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c b/Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c index 501ebf9..3b52f5b 100644 --- a/Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c +++ b/Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c @@ -58,9 +58,8 @@ #endif // Currently not implemented -#define UNUSED(x) UNUSED_ ## x __attribute__((__unused__)) -#define UNUSED_FUNCTION(x) __attribute__((__unused__)) UNUSED_ ## x -void OnRequestCB(void* UNUSED(handle) , const char* UNUSED(api), const char* UNUSED(verb), struct afb_wsj1_msg*UNUSED(msg)) {} +#define UNUSED_ARG(x) UNUSED_ ## x __attribute__((__unused__)) +void OnRequestCB(void* UNUSED_ARG(handle) , const char* UNUSED_ARG(api), const char* UNUSED_ARG(verb), struct afb_wsj1_msg*UNUSED_ARG(msg)) {} typedef struct { const char *api; diff --git a/Alsa-Plugin/Alsa-Policy-Hook/README.md b/Alsa-Plugin/Alsa-Policy-Hook/README.md index ce0553c..537418d 100644 --- a/Alsa-Plugin/Alsa-Policy-Hook/README.md +++ b/Alsa-Plugin/Alsa-Policy-Hook/README.md @@ -40,17 +40,17 @@ pcm.MyNavigationHook { request { # Request autorisation to write on navigation RequestNavigation { - api "polctl" + api "control" verb "navigation" } # subscribe to Audio Agent Event SubscriveEvents { - api "polctl" + api "control" verb "monitor" } # force PCM stop after 10s TestAutoStop { - api "polctl" + api "control" verb "event_test" query "{'label':'stop', 'delay':10000}" } -- cgit 1.2.3-korg