自主协议库编译通过
This commit is contained in:
96
mmslib/mmsle/rq_defty.c
Normal file
96
mmslib/mmsle/rq_defty.c
Normal file
@@ -0,0 +1,96 @@
|
||||
/************************************************************************/
|
||||
/* SISCO SOFTWARE MODULE HEADER *****************************************/
|
||||
/************************************************************************/
|
||||
/* (c) Copyright Systems Integration Specialists Company, Inc., */
|
||||
/* 1986 - 2001, All Rights Reserved. */
|
||||
/* */
|
||||
/* PROPRIETARY AND CONFIDENTIAL */
|
||||
/* */
|
||||
/* MODULE NAME : rq_deftype.c */
|
||||
/* PRODUCT(S) : MMSEASE, MMSEASE-LITE */
|
||||
/* */
|
||||
/* MODULE DESCRIPTION : */
|
||||
/* This module contains the requester portion of define named */
|
||||
/* type. It decodes the define named type response (confirm) & */
|
||||
/* encodes the define named type request. */
|
||||
/* */
|
||||
/* GLOBAL FUNCTIONS DEFINED IN THIS MODULE : */
|
||||
/* */
|
||||
/* MODIFICATION LOG : */
|
||||
/* Date Who Rev Comments */
|
||||
/* -------- --- ------ ------------------------------------------- */
|
||||
/* 12/20/01 JRB 02 Converted to use ASN1R (re-entrant ASN1) */
|
||||
/* 06/15/98 MDE 01 Changes to allow compile under C++ */
|
||||
/* 04/02/97 DTL 7.00 MMSEASE 7.0 release. See MODL70.DOC for */
|
||||
/* history. */
|
||||
/************************************************************************/
|
||||
|
||||
#include "glbtypes.h"
|
||||
#include "sysincs.h"
|
||||
|
||||
#include "mmsdefs.h"
|
||||
#include "mms_pvar.h"
|
||||
#include "asn1defs.h"
|
||||
|
||||
/************************************************************************/
|
||||
/* variables global to the DECODE portion : NONE */
|
||||
|
||||
/************************************************************************/
|
||||
/* variables global to the ENCODE portion : NONE */
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/************************************************************************/
|
||||
/* mms_def_type_rsp */
|
||||
/* NOTE : Since the mms_def_type_rsp is a NULL PDU, the decode is */
|
||||
/* continued by '_mms_null_pdu_dec', which simply sets decode done = 1 */
|
||||
/* and sets the decode done function to point to the general decode done*/
|
||||
/* fun. See mmsdec.c for the general functions. */
|
||||
/************************************************************************/
|
||||
|
||||
|
||||
#ifndef MMS_LITE
|
||||
/************************************************************************/
|
||||
/************************************************************************/
|
||||
/* mp_deftype */
|
||||
/* Create and send a define named type request. */
|
||||
/************************************************************************/
|
||||
|
||||
MMSREQ_PEND *mp_deftype (ST_INT chan, DEFTYPE_REQ_INFO *info_ptr)
|
||||
{
|
||||
return (_mms_req_send (MMSOP_DEF_TYPE,
|
||||
M_CAST_MK_FUN (_ms_mk_deftype_req),
|
||||
chan,(ST_CHAR *)info_ptr));
|
||||
}
|
||||
|
||||
#else
|
||||
/************************************************************************/
|
||||
/************************************************************************/
|
||||
/* mpl_deftype */
|
||||
/* Create a define named type request. */
|
||||
/************************************************************************/
|
||||
|
||||
ST_RET mpl_deftype (DEFTYPE_REQ_INFO *info_ptr)
|
||||
{
|
||||
return (_mms_req_fin (MMSOP_DEF_TYPE,
|
||||
M_CAST_MK_FUN (_ms_mk_deftype_req),
|
||||
(ST_CHAR *)info_ptr));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/************************************************************************/
|
||||
/* _ms_mk_deftype_req */
|
||||
/* construct a define type definition request */
|
||||
/************************************************************************/
|
||||
|
||||
ST_VOID _ms_mk_deftype_req (ASN1_ENC_CTXT *aCtx, DEFTYPE_REQ_INFO *info_ptr)
|
||||
{
|
||||
_ms_wr_va_type_spec (aCtx, &info_ptr->type_spec);
|
||||
|
||||
_ms_wr_mms_objname (aCtx, &info_ptr->type_name);
|
||||
|
||||
/* write the context specific explicit tag for this opcode. */
|
||||
asn1r_fin_constr (aCtx, MMSOP_DEF_TYPE,CTX,DEF); /* tag = opcode, ctx constr */
|
||||
}
|
||||
Reference in New Issue
Block a user