mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 03:02:15 +00:00
Allow semi-blocking fd's on manager (bug #1100)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -66,7 +66,7 @@ struct mansession {
|
||||
int writeperm;
|
||||
char inbuf[MAX_LEN];
|
||||
int inlen;
|
||||
|
||||
int send_events;
|
||||
struct mansession *next;
|
||||
};
|
||||
|
||||
@@ -84,6 +84,8 @@ struct manager_action {
|
||||
struct manager_action *next;
|
||||
};
|
||||
|
||||
int ast_carefulwrite(int fd, char *s, int len, int timeoutms);
|
||||
|
||||
/* External routines may register/unregister manager callbacks this way */
|
||||
int ast_manager_register( char *action, int authority,
|
||||
int (*func)(struct mansession *s, struct message *m), char *synopsis);
|
||||
|
Reference in New Issue
Block a user