mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
Fix manager declarations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -92,11 +92,11 @@ struct message {
|
|||||||
|
|
||||||
struct manager_action {
|
struct manager_action {
|
||||||
/*! Name of the action */
|
/*! Name of the action */
|
||||||
char *action;
|
const char *action;
|
||||||
/*! Short description of the action */
|
/*! Short description of the action */
|
||||||
char *synopsis;
|
const char *synopsis;
|
||||||
/*! Detailed description of the action */
|
/*! Detailed description of the action */
|
||||||
char *description;
|
const char *description;
|
||||||
/*! Permission required for action. EVENT_FLAG_* */
|
/*! Permission required for action. EVENT_FLAG_* */
|
||||||
int authority;
|
int authority;
|
||||||
/*! Function to be called */
|
/*! Function to be called */
|
||||||
@@ -120,11 +120,11 @@ int ast_carefulwrite(int fd, char *s, int len, int timeoutms);
|
|||||||
\param description Help text, several lines
|
\param description Help text, several lines
|
||||||
*/
|
*/
|
||||||
int ast_manager_register2(
|
int ast_manager_register2(
|
||||||
char *action,
|
const char *action,
|
||||||
int authority,
|
int authority,
|
||||||
int (*func)(struct mansession *s, struct message *m),
|
int (*func)(struct mansession *s, struct message *m),
|
||||||
char *synopsis,
|
const char *synopsis,
|
||||||
char *description);
|
const char *description);
|
||||||
|
|
||||||
/*! Unregister a registred manager command */
|
/*! Unregister a registred manager command */
|
||||||
/*! \param action Name of registred Action:
|
/*! \param action Name of registred Action:
|
||||||
|
@@ -1470,7 +1470,7 @@ static int ast_manager_register_struct(struct manager_action *act)
|
|||||||
return 0;
|
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;
|
struct manager_action *cur;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user