summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-09-20 12:06:07 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-09-20 12:09:12 -0700
commita6bc8b7caf80cd32088e26f1394b265ec0fd21a7 (patch)
tree3f13417d16bc8fa217a9930018d469474436be2b
parentf2a2eefabf1252301070f249f2249758e648f5bf (diff)
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 <matt.ranostay@konsulko.com>
-rw-r--r--binding/media-api.c8
1 files 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()