Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / udpfromto.h
1 #ifndef UDPFROMTO_H
2 #define UDPFROMTO_H
3 /*
4  * Version:     $Id$
5  *
6  */
7
8 #include <freeradius-devel/ident.h>
9 RCSIDH(udpfromtoh, "$Id$")
10
11 #include <freeradius-devel/autoconf.h>
12 #include <freeradius-devel/libradius.h>
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #ifdef WITH_UDPFROMTO
19 int udpfromto_init(int s);
20 int recvfromto(int s, void *buf, size_t len, int flags,
21                struct sockaddr *from, socklen_t *fromlen,
22                struct sockaddr *to, socklen_t *tolen);
23 int sendfromto(int s, void *buf, size_t len, int flags,
24                struct sockaddr *from, socklen_t fromlen,
25                struct sockaddr *to, socklen_t tolen);
26 #endif
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif