mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
32 lines
556 B
C
Executable File
32 lines
556 B
C
Executable File
/*
|
|
* Asterisk -- A telephony toolkit for Linux.
|
|
*
|
|
* Utility functions
|
|
*
|
|
* Copyright (C) 2004, Digium
|
|
*
|
|
* This program is free software, distributed under the terms of
|
|
* the GNU General Public License
|
|
*/
|
|
|
|
#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);
|
|
|
|
extern int test_for_thread_safety(void);
|
|
|
|
#endif
|