mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-22 20:56:39 +00:00 
			
		
		
		
	make ari-stubs so doc periodic jobs can run
The periodic doc job does a make ari-stubs and checks that there are no changes before generating the docs. Since I changed the mustache template (and the generated code directly) recently and forgot to regenerate the stubs, the doc job thinks they're out of date. Change-Id: I94b97035311eccf52b0101b8590223265a7881d4
This commit is contained in:
		| @@ -321,14 +321,6 @@ static struct stasis_rest_handlers deviceStates = { | ||||
| 	.children = { &deviceStates_deviceName, } | ||||
| }; | ||||
|  | ||||
| static int load_module(void) | ||||
| { | ||||
| 	int res = 0; | ||||
| 	stasis_app_ref(); | ||||
| 	res |= ast_ari_add_handler(&deviceStates); | ||||
| 	return res; | ||||
| } | ||||
|  | ||||
| static int unload_module(void) | ||||
| { | ||||
| 	ast_ari_remove_handler(&deviceStates); | ||||
| @@ -336,6 +328,19 @@ static int unload_module(void) | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| static int load_module(void) | ||||
| { | ||||
| 	int res = 0; | ||||
| 	stasis_app_ref(); | ||||
| 	res |= ast_ari_add_handler(&deviceStates); | ||||
| 	if (res) { | ||||
| 		unload_module(); | ||||
| 		return AST_MODULE_LOAD_DECLINE; | ||||
| 	} | ||||
|  | ||||
| 	return AST_MODULE_LOAD_SUCCESS; | ||||
| } | ||||
|  | ||||
| AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Device state resources", | ||||
| 	.support_level = AST_MODULE_SUPPORT_CORE, | ||||
| 	.load = load_module, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user