struct manager_action {
/*! Name of the action */
- char *action;
+ const char *action;
/*! Short description of the action */
- char *synopsis;
+ const char *synopsis;
/*! Detailed description of the action */
- char *description;
+ const char *description;
/*! Permission required for action. EVENT_FLAG_* */
int authority;
/*! Function to be called */
\param description Help text, several lines
*/
int ast_manager_register2(
- char *action,
+ const char *action,
int authority,
int (*func)(struct mansession *s, struct message *m),
- char *synopsis,
- char *description);
+ const char *synopsis,
+ const char *description);
/*! Unregister a registred manager command */
/*! \param action Name of registred Action:
return 0;
}
-int ast_manager_register2(char *action, int auth, int (*func)(struct mansession *s, struct message *m), char *synopsis, char *description)
+int ast_manager_register2(const char *action, int auth, int (*func)(struct mansession *s, struct message *m), const char *synopsis, const char *description)
{
struct manager_action *cur;