mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Merge drumkilla's bitfield patch for SIP (bug #3083)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -23,8 +23,8 @@
|
|||||||
|
|
||||||
#define ast_clear_flag(p,flag) ((p)->flags &= ~(flag))
|
#define ast_clear_flag(p,flag) ((p)->flags &= ~(flag))
|
||||||
|
|
||||||
#define ast_copy_flags(dest,src,flagz) do { dest->flags &= ~(flagz); \
|
#define ast_copy_flags(dest,src,flagz) do { (dest)->flags &= ~(flagz); \
|
||||||
dest->flags |= (src->flags & flagz); } while(0)
|
(dest)->flags |= ((src)->flags & (flagz)); } while(0)
|
||||||
|
|
||||||
#define ast_set2_flag(p,value,flag) ((value) ? ast_set_flag(p,flag) : ast_clear_flag(p,flag))
|
#define ast_set2_flag(p,value,flag) ((value) ? ast_set_flag(p,flag) : ast_clear_flag(p,flag))
|
||||||
|
|
||||||
@@ -38,6 +38,9 @@ struct ast_hostent {
|
|||||||
char buf[1024];
|
char buf[1024];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct ast_flags {
|
||||||
|
int flags;
|
||||||
|
};
|
||||||
|
|
||||||
extern char *ast_strip(char *buf);
|
extern char *ast_strip(char *buf);
|
||||||
extern struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp);
|
extern struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp);
|
||||||
|
Reference in New Issue
Block a user