summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-10-24 16:36:12 +0200
committerDmitry Kozlov <xeb@mail.ru>2018-10-26 06:34:34 +0300
commita32135efd217f4cf15227485cf590586c3b6929f (patch)
tree6813237b1756d6e57ccf07041160bbd07b7e490b /accel-pppd
parent8de162eb8c0ea481fa059b463f2555cbfaf6a7a6 (diff)
downloadaccel-ppp-xebd-a32135efd217f4cf15227485cf590586c3b6929f.tar.gz
accel-ppp-xebd-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>
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ppp/ppp_fsm.h7
1 files changed, 5 insertions, 2 deletions
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 <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;