98 lines
2.8 KiB
C
98 lines
2.8 KiB
C
|
|
/*
|
|
******************************************************************************
|
|
* HEADER FILE
|
|
*
|
|
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipl2tp_example.h,v $ $Revision: 1.3 $
|
|
* $Source: /home/interpeak/CVSRoot/ipl2tp/config/ipl2tp_example.h,v $
|
|
* $Author: tneale $ $Date: 2010-05-13 21:15:09 $
|
|
* $State: Exp $ $Locker: $
|
|
*
|
|
* INTERPEAK_COPYRIGHT_STRING
|
|
* Design and implementation by Joel Hortelius <joel.hortelius@interpeak.se>
|
|
******************************************************************************
|
|
*/
|
|
#ifndef IPL2TP_EXAMPLE_H
|
|
#define IPL2TP_EXAMPLE_H
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 1 DESCRIPTION
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 2 CONFIGURATION
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 3 INCLUDE FILES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 4 DEFINES
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 5 TYPES
|
|
****************************************************************************
|
|
*/
|
|
|
|
struct Ipl2tp_example_fd_entry;
|
|
typedef void (*Ipl2tp_example_data_cb)
|
|
(
|
|
struct Ipl2tp_example_fd_entry *entry,
|
|
void *buffer,
|
|
void *data,
|
|
Ip_size_t size
|
|
);
|
|
|
|
typedef struct Ipl2tp_example_fd_entry
|
|
{
|
|
Ipcom_list next;
|
|
Ip_fd fd;
|
|
void *ptr;
|
|
Ipl2tp_example_data_cb data;
|
|
}
|
|
Ipl2tp_example_fd_entry_t;
|
|
|
|
typedef struct Ipl2tp_example_session
|
|
{
|
|
Ipl2tp_key key;
|
|
void *circuit;
|
|
}
|
|
Ipl2tp_example_session_t;
|
|
|
|
extern Ipcom_hash *ipl2tp_example_sessions;
|
|
extern Ipcom_list ipl2tp_example_fds;
|
|
extern char ipl2tp_poke_abort[4];
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 6 FUNCTIONS
|
|
****************************************************************************
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* END OF FILE
|
|
****************************************************************************
|
|
*/
|