From 1c3ad80905ad357cf1ec8b35143d009eb0a3e175 Mon Sep 17 00:00:00 2001 From: citats Date: Sun, 9 May 2004 08:22:15 +0000 Subject: Add new file utils.c, Move ast_gethostbyname to utils.c git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2931 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/lock.h | 6 ------ include/asterisk/utils.h | 9 +++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 035237914..72743c04f 100755 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -179,11 +179,5 @@ static inline int ast_mutex_init(ast_mutex_t *t) #endif /* DEBUG_THREADS */ #define gethostbyname __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__ -struct ast_hostent { - struct hostent hp; - char buf[1024]; -}; - -extern struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp); #endif diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 18863e880..686f4cb1e 100755 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -12,9 +12,18 @@ #ifndef _ASTERISK_UTIL_H #define _ASTERISK_UTIL_H +#include + 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 -- cgit v1.2.3