Asterisk - The Open Source Telephony Project  18.5.0
clicompat.c
Go to the documentation of this file.
1 /*
2  * Stubs for some cli functions used by the test routines.
3  * $Revision$
4  */
5 void ast_cli(int fd, const char *fmt, ...);
6 void ast_cli(int fd, const char *fmt, ...)
7 {
8 }
9 
10 struct ast_cli_entry;
11 
12 int ast_register_atexit(void (*func)(void));
13 int ast_register_atexit(void (*func)(void))
14 {
15  return 0;
16 }
17 
18 int ast_register_cleanup(void (*func)(void));
19 int ast_register_cleanup(void (*func)(void))
20 {
21  return 0;
22 }
23 
26 {
27  return 0;
28 }
29 int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len);
31 {
32  return 0;
33 }
int __ast_cli_register_multiple(struct ast_cli_entry *e, int len)
Definition: clicompat.c:25
int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len)
Unregister multiple commands.
Definition: clicompat.c:30
descriptor for a cli entry.
Definition: cli.h:171
int ast_register_cleanup(void(*func)(void))
Register a function to be executed before Asterisk gracefully exits.
Definition: clicompat.c:19
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
void ast_cli(int fd, const char *fmt,...)
Definition: clicompat.c:6
int ast_register_atexit(void(*func)(void))
Register a function to be executed before Asterisk exits.
Definition: clicompat.c:13