mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 22:08:28 +00:00
split acl and netsock code into separate files, in preparation for new netsock implementation
various minor cleanups git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -136,14 +136,22 @@ extern int ast_base64decode(unsigned char *dst, char *src, int max);
|
||||
extern int test_for_thread_safety(void);
|
||||
|
||||
extern const char *ast_inet_ntoa(char *buf, int bufsiz, struct in_addr ia);
|
||||
extern int ast_utils_init(void);
|
||||
extern int ast_wait_for_input(int fd, int ms);
|
||||
|
||||
#ifdef inet_ntoa
|
||||
#undef inet_ntoa
|
||||
#endif
|
||||
#define inet_ntoa __dont__use__inet_ntoa__use__ast_inet_ntoa__instead__
|
||||
|
||||
extern int ast_utils_init(void);
|
||||
extern int ast_wait_for_input(int fd, int ms);
|
||||
|
||||
/*! Compares the source address and port of two sockaddr_in */
|
||||
static inline int inaddrcmp(const struct sockaddr_in *sin1, const struct sockaddr_in *sin2)
|
||||
{
|
||||
return ((sin1->sin_addr.s_addr != sin2->sin_addr.s_addr)
|
||||
|| (sin1->sin_port != sin2->sin_port));
|
||||
}
|
||||
|
||||
#define AST_STACKSIZE 256 * 1024
|
||||
#define ast_pthread_create(a,b,c,d) ast_pthread_create_stack(a,b,c,d,0)
|
||||
extern int ast_pthread_create_stack(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *data, size_t stacksize);
|
||||
|
||||
Reference in New Issue
Block a user