[PATCH 4/6] tools/lib/traceevent: Changed return logic of tep_register_event_handler() API

2018-11-30 Thread Steven Rostedt
From: Tzvetomir Stoyanov In order to make libtraceevent into a proper library, its API should be straightforward. The tep_register_event_handler() functions returns -1 in case it successfully registers the new event handler. Such return code is used by the other library APIs in case of an error.

[PATCH 4/6] tools/lib/traceevent: Changed return logic of tep_register_event_handler() API

2018-11-30 Thread Steven Rostedt
From: Tzvetomir Stoyanov In order to make libtraceevent into a proper library, its API should be straightforward. The tep_register_event_handler() functions returns -1 in case it successfully registers the new event handler. Such return code is used by the other library APIs in case of an error.