mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Strip down the old event system
This removes unused code, event types, IE pltypes, and event IE types where possible and makes several functions private that were once public. This includes a renumbering of the remaining event and IE types which breaks binary compatibility with previous versions. The last remaining consumers of the old event system (or parts thereof) are main/security_events.c, res/res_security_log.c, tests/test_cel.c, tests/test_event.c, main/cel.c, and the CEL backends. Review: https://reviewboard.asterisk.org/r/2703/ (closes issue ASTERISK-22139) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -657,13 +657,11 @@ static struct ast_json *alloc_security_event_json_object(const struct ast_securi | ||||
| 	 *       This is true even if ast_json_object_set fails. | ||||
| 	 */ | ||||
|  | ||||
| 	/* AST_EVENT_IE_SECURITY_EVENT */ | ||||
| 	json_temp = ast_json_integer_create(sec->event_type); | ||||
| 	if (!json_temp || ast_json_object_set(json_object, ast_event_get_ie_type_name(AST_EVENT_IE_SECURITY_EVENT), json_temp)) { | ||||
| 	if (!json_temp || ast_json_object_set(json_object, "SecurityEvent", json_temp)) { | ||||
| 		return NULL; | ||||
| 	} | ||||
|  | ||||
| 	/* AST_EVENT_IE_EVENT_VERSION */ | ||||
| 	json_temp = ast_json_stringf("%d", sec->version); | ||||
| 	if (!json_temp || ast_json_object_set(json_object, ast_event_get_ie_type_name(AST_EVENT_IE_EVENT_VERSION), json_temp)) { | ||||
| 		return NULL; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user