projects
/
freeradius.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "extern C {...} to header files for C++ builds.
[freeradius.git]
/
src
/
include
/
realms.h
diff --git
a/src/include/realms.h
b/src/include/realms.h
index
c4d6891
..
0b00a1b
100644
(file)
--- a/
src/include/realms.h
+++ b/
src/include/realms.h
@@
-12,6
+12,10
@@
#include <freeradius-devel/ident.h>
RCSIDH(realms_h, "$Id$")
#include <freeradius-devel/ident.h>
RCSIDH(realms_h, "$Id$")
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define HOME_TYPE_INVALID (0)
#define HOME_TYPE_AUTH (1)
#define HOME_TYPE_ACCT (2)
#define HOME_TYPE_INVALID (0)
#define HOME_TYPE_AUTH (1)
#define HOME_TYPE_ACCT (2)
@@
-38,9
+42,7
@@
typedef struct home_server {
int port;
int type; /* auth/acct */
int port;
int type; /* auth/acct */
-#ifdef WITH_TCP
int proto;
int proto;
-#endif
int max_connections;
int num_connections; /* protected by proxy mutex */
int max_requests; /* for one connection */
int max_connections;
int num_connections; /* protected by proxy mutex */
int max_requests; /* for one connection */
@@
-62,6
+64,7
@@
typedef struct home_server {
int currently_outstanding;
int message_authenticator;
int currently_outstanding;
int message_authenticator;
+ time_t last_packet;
struct timeval revive_time;
struct timeval zombie_period_start;
int zombie_period; /* unresponsive for T, mark it dead */
struct timeval revive_time;
struct timeval zombie_period_start;
int zombie_period; /* unresponsive for T, mark it dead */
@@
-138,7
+141,7
@@
REALM *realm_find(const char *name); /* name is from a packet */
REALM *realm_find2(const char *name); /* ... with name taken from realm_find */
home_server *home_server_ldb(const char *realmname, home_pool_t *pool, REQUEST *request);
REALM *realm_find2(const char *name); /* ... with name taken from realm_find */
home_server *home_server_ldb(const char *realmname, home_pool_t *pool, REQUEST *request);
-home_server *home_server_find(fr_ipaddr_t *ipaddr, int port);
+home_server *home_server_find(fr_ipaddr_t *ipaddr, int port
, int proto
);
#ifdef WITH_COA
home_server *home_server_byname(const char *name, int type);
#endif
#ifdef WITH_COA
home_server *home_server_byname(const char *name, int type);
#endif
@@
-147,4
+150,8
@@
home_server *home_server_bynumber(int number);
#endif
home_pool_t *home_pool_byname(const char *name, int type);
#endif
home_pool_t *home_pool_byname(const char *name, int type);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* REALMS_H */
#endif /* REALMS_H */