diff options
author | gokuls <goksing@gmail.com> | 2017-08-18 16:38:13 -0400 |
---|---|---|
committer | gokuls <goksing@gmail.com> | 2017-08-18 17:03:52 -0400 |
commit | 312996e26c793460869c5569d73cb4159a13f996 (patch) | |
tree | 76b415b13afdd55543fe508879949ad58b62b55c /vnfs/VES5.0/evel/evel-library/code/evel_library/evel_event_mgr.c | |
parent | bdc999846e5888a4e4c87b2fbdf06123f32b0c0f (diff) |
Modified hardcoded eventname id to user defined
Issue-Id: VNFRQTS-77
Change-Id: I7141a1cd5206893007873efbeaef377e5e00c96b
Signed-Off-by: Gokul Singaraju <goksing@gmail.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/evel_library/evel_event_mgr.c')
-rw-r--r-- | vnfs/VES5.0/evel/evel-library/code/evel_library/evel_event_mgr.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_event_mgr.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_event_mgr.c index de4296df..a96124ab 100644 --- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_event_mgr.c +++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_event_mgr.c @@ -144,6 +144,16 @@ EVEL_ERR_CODES event_handler_initialize(const char * const event_api_url, evel_throt_api_url = strdup(throt_api_url); assert(evel_throt_api_url != NULL); + + curl_version_info_data *d = curl_version_info(CURLVERSION_NOW); + /* compare with the 24 bit hex number in 8 bit fields */ + if(d->version_num >= 0x072100) { + /* this is libcurl 7.33.0 or later */ + EVEL_INFO("7.33 or later Curl version %x.",d->version_num); + } + else { + EVEL_INFO("Old Curl version."); + } /***************************************************************************/ /* Start the CURL library. Note that this initialization is not threadsafe */ /* which imposes a constraint that the EVEL library is initialized before */ @@ -408,7 +418,7 @@ EVEL_ERR_CODES event_handler_terminate() /*************************************************************************/ /* Make sure that the event handler knows it's time to die. */ /*************************************************************************/ - event = evel_new_internal_event(EVT_CMD_TERMINATE); + event = evel_new_internal_event(EVT_CMD_TERMINATE,"EVELinternal","EVELid"); if (event == NULL) { /***********************************************************************/ |