[Asterisk-cvs] asterisk/include/asterisk cli.h,1.7,1.8

kpfleming at lists.digium.com kpfleming at lists.digium.com
Sat May 14 22:58:19 CDT 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv859/include/asterisk

Modified Files:
	cli.h 
Log Message:
add functions to register/unregister multiple CLI commands in a single operation (bug #4255, with minor mods)


Index: cli.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/cli.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- cli.h	15 Jan 2005 23:48:12 -0000	1.7
+++ cli.h	15 May 2005 03:03:48 -0000	1.8
@@ -57,23 +57,36 @@
  */
 extern int ast_cli_command(int fd, char *s);
 
-/*! Registers a command */
+/*! Registers a command or an array of commands */
 /*! 
- * \param fd File descriptor that I/O is done to
- * \param s string given at prompt
+ * \param e which cli entry to register
  * Register your own command
  * Returns 0 on success, -1 on failure
  */
 extern int ast_cli_register(struct ast_cli_entry *e);
 
-/*! Unregisters a command */
+/*! 
+ * \param e pointer to first cli entry to register
+ * \param len number of entries to register
+ * Register multiple commands
+ */
+extern void ast_cli_register_multiple(struct ast_cli_entry *e, int len);
+
+/*! Unregisters a command or an array of commands */
 /*!
  * \param e which cli entry to unregister
- * Unregister your own command.  You must pass a completed ast_cli_entry structur
- * Returns 0 on success, -1 on failure
+ * Unregister your own command.  You must pass a completed ast_cli_entry structure
+ * Returns 0.
  */
 extern int ast_cli_unregister(struct ast_cli_entry *e);
 
+/*!
+ * \param e pointer to first cli entry to unregister
+ * \param len number of entries to unregister
+ * Unregister multiple commands
+ */
+extern void ast_cli_unregister_multiple(struct ast_cli_entry *e, int len);
+
 /*! Readline madness */
 /* Useful for readline, that's about it
  * Returns 0 on success, -1 on failure




More information about the svn-commits mailing list