diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2018-10-24 16:36:12 +0200 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2018-10-26 06:34:34 +0300 |
commit | a32135efd217f4cf15227485cf590586c3b6929f (patch) | |
tree | 6813237b1756d6e57ccf07041160bbd07b7e490b | |
parent | 8de162eb8c0ea481fa059b463f2555cbfaf6a7a6 (diff) | |
download | accel-ppp-a32135efd217f4cf15227485cf590586c3b6929f.tar.gz accel-ppp-a32135efd217f4cf15227485cf590586c3b6929f.zip |
ppp: make ppp_fsm.h self-contained
We need to include <stdint.h> 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 <g.nault@alphalink.fr>
-rw-r--r-- | accel-pppd/ppp/ppp_fsm.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_fsm.h b/accel-pppd/ppp/ppp_fsm.h index 57abb869..6208d9ad 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 <stdint.h> + +#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; |