mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-10 03:48:34 +00:00
Add new file utils.c, Move ast_gethostbyname to utils.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -12,9 +12,18 @@
|
||||
#ifndef _ASTERISK_UTIL_H
|
||||
#define _ASTERISK_UTIL_H
|
||||
|
||||
#include <netdb.h>
|
||||
|
||||
static inline int ast_strlen_zero(const char *s)
|
||||
{
|
||||
return (*s == '\0');
|
||||
}
|
||||
|
||||
struct ast_hostent {
|
||||
struct hostent hp;
|
||||
char buf[1024];
|
||||
};
|
||||
|
||||
extern struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user