Description: Code
#ifndef __SDLI_H__
#define __SDLI_H__
#ident "@(#) sdli.h,v openss7-0_9_2_G(0.9.2.6) Copyright (c) 2001-2008 OpenSS7 Corporation."
typedef lmi_long sdl_long;
typedef lmi_ulong sdl_ulong;
typedef lmi_ushort sdl_ushort;
typedef lmi_uchar sdl_uchar;
#define SDL_PROTO_BASE 32L
#define SDL_DSTR_FIRST ( 1L + SDL_PROTO_BASE)
#define SDL_BITS_FOR_TRANSMISSION_REQ ( 1L + SDL_PROTO_BASE)
#define SDL_CONNECT_REQ ( 2L + SDL_PROTO_BASE)
#define SDL_DISCONNECT_REQ ( 3L + SDL_PROTO_BASE)
#define SDL_DSTR_LAST ( 3L + SDL_PROTO_BASE)
#define SDL_USTR_LAST (-1L - SDL_PROTO_BASE)
#define SDL_RECEIVED_BITS_IND (-1L - SDL_PROTO_BASE)
#define SDL_DISCONNECT_IND (-2L - SDL_PROTO_BASE)
#define SDL_USTR_FIRST (-2L - SDL_PROTO_BASE)
#define SDL_DISCONNECTED 0
#define SDL_CONNECTED 1
typedef struct {
sdl_long sdl_primitive;
} sdl_bits_for_transmission_req_t;
typedef struct {
sdl_long sdl_primitive;
sdl_ulong sdl_flags;
} sdl_connect_req_t;
#define SDL_RX_DIRECTION 0x01
#define SDL_TX_DIRECTION 0x02
typedef struct {
sdl_long sdl_primitive;
sdl_ulong sdl_flags;
} sdl_disconnect_req_t;
typedef struct {
sdl_long sdl_primitive;
} sdl_received_bits_ind_t;
typedef struct {
sdl_long sdl_primitive;
} sdl_disconnect_ind_t;
union SDL_primitives {
sdl_long sdl_primitive;
sdl_bits_for_transmission_req_t bits_for_transmission_req;
sdl_connect_req_t connect_req;
sdl_disconnect_req_t disconnect_req;
sdl_received_bits_ind_t received_bits_ind;
sdl_disconnect_ind_t disconnect_ind;
};
#define SDL_BITS_FOR_TRANSMISSION_REQ_SIZE sizeof(sdl_bits_for_transmission_req_t)
#define SDL_CONNECT_REQ_SIZE sizeof(sdl_connect_req_t)
#define SDL_DISCONNECT_REQ_SIZE sizeof(sdl_disconnect_req_t)
#define SDL_RECEIVED_BITS_IND_SIZE sizeof(sdl_received_bits_ind_t)
#define SDL_DISCONNECT_IND_SIZE sizeof(sdl_disconnect_ind_t)
#endif