From a6bc8b7caf80cd32088e26f1394b265ec0fd21a7 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 20 Sep 2017 12:06:07 -0700 Subject: binding: mediascanner: remove AFB_SESSION_CHECK from verbs AFB_SESSION_CHECK is not needed for the mediascanner verbs, since there isn't a need of secured sessions. Bug-AGL: SPEC-904 Change-Id: I06b09b9d739ebbec22710463ab15212b929b5423 Signed-off-by: Matt Ranostay --- binding/media-api.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/binding/media-api.c b/binding/media-api.c index f02e24a..8f7503d 100644 --- a/binding/media-api.c +++ b/binding/media-api.c @@ -140,10 +140,10 @@ static void media_broadcast_device_removed (const char *obj_path) } static const struct afb_verb_v2 binding_verbs[] = { - { "media_result", media_results_get, NULL, "Media scan result", AFB_SESSION_CHECK }, - { "subscribe", subscribe, NULL, "Subscribe for an event", AFB_SESSION_CHECK }, - { "unsubscribe", unsubscribe, NULL, "Unsubscribe for an event", AFB_SESSION_CHECK }, - { NULL } + { .verb = "media_result", .callback = media_results_get, .info = "Media scan result" }, + { .verb = "subscribe", .callback = subscribe, .info = "Subscribe for an event" }, + { .verb = "unsubscribe", .callback = unsubscribe, .info = "Unsubscribe for an event" }, + { } }; static int preinit() -- cgit 1.2.3-korg