/********************************************************************************************************************************/ /* Created: 30-Mar-2010 16:33:44 by OpenVMS SDL EV3-3 */ /* Source: 30-NOV-2007 15:59:33 $1$DGA7374:[PPPD.SRC]PPP_VCI_IF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $PPP_VCI_IF ***/ #ifndef __PPP_VCI_IF_LOADED #define __PPP_VCI_IF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /* */ /* The VCIB is defined as a non-typedef structure. However, the structure in */ /* which it is embedded is declared here as a typedef, meaning that SDL will */ /* generate a reference to the typedef name VCIBDEF. We define the missing */ /* VCIBDEF to be the equivalent struct reference. */ /* */ typedef struct vcibdef VCIBDEF; /* */ /* Define events that can be reported */ /* */ #define PPPD$K_PORT_FAILED 0 #define PPPD$K_PORT_USABLE 1 #define PPPD$K_PORT_UNUSABLE 2 /* */ /* Define reasons for events */ /* */ #define PPPD$K_DEV_FAILED 0 #define PPPD$K_LCP_FAILED 1 #define PPPD$K_LINE_DELETED 2 #define PPPD$K_NCP_FAILED 3 #define PPPD$K_NO_REASON 4 /* */ /* Define item codes for Enable */ /* */ #define PPPD$K_NAME 0 #define PPPD$K_PROTOCOL 1 /* */ /* Define the PPP vcib */ /* */ #define VCIB$K_PPP_VCIB_FIXED_LENGTH 68 typedef struct _vcibpppdef { VCIBDEF vcib$r_vcibdef; void *vcib$a_ppp_port_id; /* port associated with the vcib */ char vcib$b_ppp_fcs_size; /* # of bytes to leave for FCS */ char vcib$b_ppp_hdr_size; /* # of bytes to leave for header */ short int vcib$w_ppp_mtu; /* max. bytes of data in a packet */ } VCIBPPPDEF; /* */ /* Define the stucture containing the create/delete routines */ /* */ #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif typedef struct _vcirtns { #pragma __nomember_alignment int (*createport)(); /* Create port routine */ int (*deleteport)(); /* Delete port routine */ } VCIRTNS; #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __PPP_VCI_IF_LOADED */