summaryrefslogtreecommitdiff
path: root/legacy/evil/src/lib/evil_inet.h
blob: e80a884c115761d491980db4eb0e07e3928f339a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

/* Copyright (C) 2005 by Daniel Stenberg
 *
 * Permission to use, copy, modify, and distribute this
 * software and its documentation for any purpose and without
 * fee is hereby granted, provided that the above copyright
 * notice appear in all copies and that both that copyright
 * notice and this permission notice appear in supporting
 * documentation, and that the name of M.I.T. not be used in
 * advertising or publicity pertaining to distribution of the
 * software without specific, written prior permission.
 * M.I.T. makes no representations about the suitability of
 * this software for any purpose.  It is provided "as is"
 * without express or implied warranty.
 */

#ifndef __EVIL_INET_H__
#define __EVIL_INET_H__


/**
 * @file evil_inet.h
 * @brief The file that provides functions ported from Unix in arpa/inet.h.
 * @defgroup Evil_Inet_Group Inet.h functions
 *
 * This header provides functions ported from Unix in stdio.h.
 *
 * @{
 */

EAPI int evil_inet_pton(int af, const char *src, void *dst);

#define inet_pton(x,y,z) evil_inet_pton(x,y,z)

EAPI const char *evil_inet_ntop(int af, const char *src, void *dst, size_t size);

#define inet_ntop(x,y,z,s) evil_inet_ntop(x,y,z,s)



/**
 * @}
 */


#endif /* __EVIL_INET_H__ */