mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	config_options: Handle ACO arrays correctly in generated XML docs.
There are 3 separate changes here but they are all closely related: * Only try to set matchfield attributes on 'field' nodes * We need to adjust how we treat the category pointer based on the value of the category_match, to avoid memory corruption. We now generate a regex-like string when match types other than ACO_WHITELIST and ACO_BLACKLIST are used. * Switch app_agent_pool from ACO_BLACKLIST_ARRAY to ACO_BLACKLIST_EXACT since we only have one category we need to ignore, not two. ASTERISK-29614 #close Change-Id: I7be7bdb1bb9814f942bc6bb4fdd0a55a7b7efe1e
This commit is contained in:
		
				
					committed by
					
						 Kevin Harwell
						Kevin Harwell
					
				
			
			
				
	
			
			
			
						parent
						
							29770520b3
						
					
				
				
					commit
					16b0f460f6
				
			| @@ -456,17 +456,11 @@ struct agents_cfg { | ||||
| 	struct ao2_container *agents; | ||||
| }; | ||||
|  | ||||
| static const char *agent_type_blacklist[] = { | ||||
| 	"general", | ||||
| 	"agents", | ||||
| 	NULL, | ||||
| }; | ||||
|  | ||||
| static struct aco_type agent_type = { | ||||
| 	.type = ACO_ITEM, | ||||
| 	.name = "agent-id", | ||||
| 	.category_match = ACO_BLACKLIST_ARRAY, | ||||
| 	.category = (const char *)agent_type_blacklist, | ||||
| 	.category_match = ACO_BLACKLIST_EXACT, | ||||
| 	.category = "general", | ||||
| 	.item_alloc = agent_cfg_alloc, | ||||
| 	.item_find = agent_cfg_find, | ||||
| 	.item_offset = offsetof(struct agents_cfg, agents), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user