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:
Mark Spencer
2004-03-01 21:12:32 +00:00
parent 4de0a2e30e
commit 8f73da1f79
2 changed files with 86 additions and 8 deletions

View File

@@ -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);