aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/VES5.0/evel/evel-library/code/evel_library/evel.c
diff options
context:
space:
mode:
authorGokul Singaraju <goksing@gmail.com>2017-11-28 23:42:58 -0500
committerGokul Singaraju <goksing@gmail.com>2017-11-28 23:49:57 -0500
commitf9cbe4b0ecf250f970cd8ed37b4ba3e9e8af1396 (patch)
treea73e17d2be3bd0d360cf34efc4b5fc75e1d4ecc3 /vnfs/VES5.0/evel/evel-library/code/evel_library/evel.c
parent12fd5fcf0e58f79cd4666592dd0fc34090b298e7 (diff)
Implement batching of VES events
Issue-ID: CERT-6 Change-Id: Ie2ba74075539e6896b1c1bd580cf0a80414a04a1 Signed-off-by: Gokul Singaraju <goksing@gmail.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/evel_library/evel.c')
-rw-r--r--vnfs/VES5.0/evel/evel-library/code/evel_library/evel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel.c
index dbaf58ad..246ed5de 100644
--- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel.c
+++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel.c
@@ -388,6 +388,13 @@ void evel_free_event(void * event)
free(evt_ptr);
break;
+ case EVEL_DOMAIN_BATCH:
+ EVEL_DEBUG("Event is a Batch at %lp", evt_ptr);
+ evel_free_batch((EVENT_HEADER *)evt_ptr);
+ memset(evt_ptr, 0, sizeof(EVENT_HEADER));
+ free(evt_ptr);
+ break;
+
default:
EVEL_ERROR("Unexpected event domain (%d)", evt_ptr->event_domain);
assert(0);