From a32135efd217f4cf15227485cf590586c3b6929f Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Wed, 24 Oct 2018 16:36:12 +0200 Subject: ppp: make ppp_fsm.h self-contained We need to include to define 'uint16_t' and "triton.h" for 'struct triton_timer_t'. Also, let's include "ppp.h" so that we don't need a forward declaration for 'struct ppp_t'. Signed-off-by: Guillaume Nault --- accel-pppd/ppp/ppp_fsm.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'accel-pppd/ppp/ppp_fsm.h') diff --git a/accel-pppd/ppp/ppp_fsm.h b/accel-pppd/ppp/ppp_fsm.h index 57abb86..6208d9a 100644 --- a/accel-pppd/ppp/ppp_fsm.h +++ b/accel-pppd/ppp/ppp_fsm.h @@ -1,6 +1,11 @@ #ifndef PPP_FSM_H #define PPP_FSM_H +#include + +#include "ppp.h" +#include "triton.h" + typedef enum {FSM_Initial=0,FSM_Starting,FSM_Closed,FSM_Stopped,FSM_Closing,FSM_Stopping,FSM_Req_Sent,FSM_Ack_Rcvd,FSM_Ack_Sent,FSM_Opened} FSM_STATE; /* * CP (LCP, IPCP, etc.) codes. @@ -18,8 +23,6 @@ typedef enum {FSM_Initial=0,FSM_Starting,FSM_Closed,FSM_Stopped,FSM_Closing,FSM_ #define DISCARDREQ 11 /* Discard Request */ #define IDENT 12 /* Identification */ -struct ppp_t; - struct ppp_fsm_t { struct ppp_t *ppp; -- cgit v1.2.3