From 26d64e2cc9113f11aead582ed6048c52dc5d9055 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Wed, 24 Oct 2018 16:36:13 +0200 Subject: [PATCH] radius: make radius.h self-contained We need to include "list.h" to define 'struct list_head' and for 'in_addr_t' and 'struct in6_addr'. Also, let's include "ap_session.h" so that we don't need a forward declaration for 'struct ap_session'. Signed-off-by: Guillaume Nault --- accel-pppd/radius/radius.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/accel-pppd/radius/radius.h b/accel-pppd/radius/radius.h index 6428bb1..9fc8869 100644 --- a/accel-pppd/radius/radius.h +++ b/accel-pppd/radius/radius.h @@ -1,9 +1,13 @@ #ifndef __RADIUS_H #define __RADIUS_H +#include #include #include +#include "ap_session.h" +#include "list.h" + #define REQ_LENGTH_MAX 4096 #define ATTR_TYPE_INTEGER 0 @@ -112,8 +116,6 @@ struct rad_plugin_t int (*send_accounting_request)(struct rad_plugin_t *, struct rad_packet_t *pack); }; -struct ap_session; - void rad_register_plugin(struct ap_session *, struct rad_plugin_t *); struct rad_dict_attr_t *rad_dict_find_attr(const char *name); -- GitLab