mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-12-04 14:46:31 -05:00
4a83cc46cd
I suspect all this may be unnecessary, only because I've never heard of this before. But then, I don't do much library work, and better safe than sorry. svn path=/trunk/net/; revision=5083
42 lines
727 B
C
42 lines
727 B
C
/*
|
|
** resolver.h
|
|
**
|
|
** name resolver library header
|
|
**
|
|
*/
|
|
|
|
#ifndef __RESOLVER_H
|
|
#define __RESOLVER_H
|
|
|
|
|
|
/*
|
|
** resolver_lookup
|
|
**
|
|
** resolves a hosts name from it's ip address
|
|
** or
|
|
** resolves an ip address from it's host name
|
|
**
|
|
** returns a pointer to buff, or NULL if an error occured
|
|
**
|
|
*/
|
|
|
|
#ifdef _mangle
|
|
# define resolver_initialize _mangle(resolver_initialize)
|
|
# define resolver_shutdown _mangle(resolver_shutdown)
|
|
# define resolver_getname _mangle(resolver_getname)
|
|
# define resolver_getip _mangle(resolver_getip)
|
|
#endif
|
|
|
|
void resolver_initialize(void);
|
|
void resolver_shutdown(void);
|
|
|
|
char *resolver_getname(const char *ip, char *buff, int len);
|
|
char *resolver_getip(const char *name, char *buff, int len);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|