提交 a32135ef 编写于 作者: G Guillaume Nault 提交者: Dmitry Kozlov

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: NGuillaume Nault <g.nault@alphalink.fr>
上级 8de162eb
#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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册