memory leaks: Memory leak cleanup patch by Corey Farrell (second set)
[asterisk/asterisk.git] / utils / clicompat.c
index 670b47a..d46ed89 100644 (file)
@@ -1,16 +1,26 @@
+/*
+ * 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, ...)
 {
 }
 
 void ast_cli(int fd, const char *fmt, ...);
 void ast_cli(int fd, const char *fmt, ...)
 {
 }
 
-struct ast_cli_entry {
-       char * const cmda; /* just something to satisfy compile & link; will never be used */
-};
+struct ast_cli_entry;
 
 
+int ast_register_atexit(void (*func)(void));
+int ast_register_atexit(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)
 {
 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;
+       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;
 }
 }
-
-