mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	* Pass module to ast_cli_register and ast_cli_register_multiple. * Add a module reference before executing any CLI callback, remove the reference when complete. ASTERISK-25049 #close Reported by: Corey Farrell Change-Id: I7aafc7c9f2b912918f28fe51d51e9e8a755750e3
		
			
				
	
	
		
			34 lines
		
	
	
		
			703 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			703 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Stubs for some cli functions used by the test routines.
 | 
						|
 * $Revision$
 | 
						|
 */
 | 
						|
void ast_cli(int fd, const char *fmt, ...);
 | 
						|
void ast_cli(int fd, const char *fmt, ...)
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
struct ast_cli_entry;
 | 
						|
 | 
						|
int ast_register_atexit(void (*func)(void));
 | 
						|
int ast_register_atexit(void (*func)(void))
 | 
						|
{
 | 
						|
	return 0;
 | 
						|
}
 | 
						|
 | 
						|
int ast_register_cleanup(void (*func)(void));
 | 
						|
int ast_register_cleanup(void (*func)(void))
 | 
						|
{
 | 
						|
	return 0;
 | 
						|
}
 | 
						|
 | 
						|
int __ast_cli_register_multiple(struct ast_cli_entry *e, int len);
 | 
						|
int __ast_cli_register_multiple(struct ast_cli_entry *e, int len)
 | 
						|
{
 | 
						|
	return 0;
 | 
						|
}
 | 
						|
int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len);
 | 
						|
int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len)
 | 
						|
{
 | 
						|
	return 0;
 | 
						|
}
 |