Removes the api prefix of the event name.
Change-Id: I050dc86beb08659751c1e57b8d3ea233bac9e411
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
*/
static const char *evt_name(struct afb_evt_event *evt)
{
*/
static const char *evt_name(struct afb_evt_event *evt)
{
+ const char *name = strchr(evt->name, '/');
+ name = name ? name + 1 : evt->name;
if (evt->hookflags & afb_hook_flag_evt_name)
afb_hook_evt_name(evt->name, evt->id);
if (evt->hookflags & afb_hook_flag_evt_name)
afb_hook_evt_name(evt->name, evt->id);