📄 l4_ex_ms.c
字号:
/********************************************************************16**
(c) COPYRIGHT 1989-2005 by
Continuous Computing Corporation.
All rights reserved.
This software is confidential and proprietary to Continuous Computing
Corporation (CCPU). No part of this software may be reproduced,
stored, transmitted, disclosed or used in any form or by any means
other than as expressly provided by the written Software License
Agreement between CCPU and its licensee.
CCPU warrants that for a period, as provided by the written
Software License Agreement between CCPU and its licensee, this
software will perform substantially to CCPU specifications as
published at the time of shipment, exclusive of any updates or
upgrades, and the media used for delivery of this software will be
free from defects in materials and workmanship. CCPU also warrants
that has the corporate authority to enter into and perform under the
Software License Agreement and it is the copyright owner of the software
as originally delivered to its licensee.
CCPU MAKES NO OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
A PARTICULAR PURPOSE WITH REGARD TO THIS SOFTWARE, SERVICE OR ANY RELATED
MATERIALS.
IN NO EVENT SHALL CCPU BE LIABLE FOR ANY INDIRECT, SPECIAL,
CONSEQUENTIAL DAMAGES, OR PUNITIVE DAMAGES IN CONNECTION WITH OR ARISING
OUT OF THE USE OF, OR INABILITY TO USE, THIS SOFTWARE, WHETHER BASED
ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), PRODUCT
LIABILITY, OR OTHERWISE, AND WHETHER OR NOT IT HAS BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
Restricted Rights Legend
This software and all related materials licensed hereby are
classified as "restricted computer software" as defined in clause
52.227-19 of the Federal Acquisition Regulation ("FAR") and were
developed entirely at private expense for nongovernmental purposes,
are commercial in nature and have been regularly used for
nongovernmental purposes, and, to the extent not published and
copyrighted, are trade secrets and confidential and are provided
with all rights reserved under the copyright laws of the United
States. The government's rights to the software and related
materials are limited and restricted as provided in clause
52.227-19 of the FAR.
IMPORTANT LIMITATION(S) ON USE
The use of this software is limited to the use set
forth in the written Software License Agreement between CCPU and
its Licensee. Among other things, the use of this software
may be limited to a particular type of Designated Equipment, as
defined in such Software License Agreement.
Before any installation, use or transfer of this software, please
consult the written Software License Agreement or contact CCPU at
the location set forth below in order to confirm that you are
engaging in a permissible use of the software.
Continuous Computing Corporation
9380, Carroll Park Drive
San Diego, CA-92121, USA
Tel: +1 (858) 882 8800
Fax: +1 (858) 777 3388
Email: support@trillium.com
Web: http://www.ccpu.com
*********************************************************************17*/
/********************************************************************20**
Name: layer 4 (TCAP) - external - mos
Type: C source file
Desc: C source code for Layer Management Primitives.
File: l4_ex_ms.c
Sid: l4_ex_ms.c@@/main/9 - Fri Sep 16 02:41:55 2005
Prg: nj
*********************************************************************21*/
#ifdef L4
/*xqc ADD L4 for map test*/
/* header include files -- defines (.h) */
#include "envopt.h" /* environment options */
#include "envdep.h" /* environment dependent */
#include "envind.h" /* environment independent */
#include "gen.h" /* general layer */
#include "ssi.h" /* system services */
#include "cm_ss7.h" /* ss7 layer */
#include "stu.h" /* TCAP interface */
#include "ma_err.h" /* MAP error codes */
/* header/extern include files (.x) */
#include "gen.x" /* general layer */
#include "ssi.x" /* system services */
#include "cm_ss7.x" /* common */
#include "stu.x" /* TCAP Interface */
/* local defines */
#define ERRL4 0
#define EL4001 (ERRL4 + 1)
/* forward references */
#ifdef __cplusplus
EXTERN "C" {
#endif
PUBLIC S16 stInitExt ARGS((Void));
PUBLIC S16 stActvTsk ARGS((Pst *pst, Buffer *mBuf));
#ifdef __cplusplus
}
#endif
/*
*
* Fun: initialize external
*
* Desc: Initializes variables used to interface with Upper/Lower
* Layer
*
* Ret: ROK - ok
*
* Notes: None
*
* File: l4_ex_ms.c
*
*/
#ifdef ANSI
PUBLIC S16 stInitExt
(
void
)
#else
PUBLIC S16 stInitExt()
#endif
{
TRC2(stInitExt)
RETVALUE(ROK);
} /* end of stInitExt */
/*
*
* Fun: Activate Task
*
* Desc: Processes received event from Upper/Lower Layer
*
* Ret: ROK - ok
*
* Notes: None
*
* File: l4_ex_ms.c
*
*/
#ifdef ANSI
PUBLIC S16 stActvTsk
(
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
#else
PUBLIC S16 stActvTsk(pst, mBuf)
Pst *pst; /* post structure */
Buffer *mBuf; /* message buffer */
#endif
{
S16 ret;
TRC3(stActvTsk)
/* Initialize the return value */
ret = ROK;
switch(pst->event)
{
#ifdef LCSTUISTU
case EVTSTUBNDREQ: /* Bind Request */
ret = cmUnpkStuBndReq(StUiStuBndReq, pst, mBuf);
break;
case EVTSTUUBNDREQ: /* Unbind Request */
ret = cmUnpkStuUbndReq(StUiStuUbndReq, pst, mBuf);
break;
case EVTSTUDATREQ: /* Data Request */
ret = cmUnpkStuDatReq(StUiStuDatReq, pst, mBuf);
break;
case EVTSTUUDATREQ: /* Unidirectional Data Request */
ret = cmUnpkStuUDatReq(StUiStuUDatReq, pst, mBuf);
break;
case EVTSTUCMPREQ: /* Component Request */
ret = cmUnpkStuCmpReq(StUiStuCmpReq, pst, mBuf);
break;
case EVTSTUSTEREQ: /* State Change Request */
ret = cmUnpkStuSteReq(StUiStuSteReq, pst, mBuf);
break;
case EVTSTUSTERSP: /* State Change Response */
ret = cmUnpkStuSteRsp(StUiStuSteRsp, pst, mBuf);
break;
#endif
default:
SPutMsg(mBuf);
#if (ERRCLASS & ERRCLS_DEBUG)
SLogError(pst->dstEnt, pst->dstInst, pst->dstProcId,
__FILE__, __LINE__,
(ErrCls)ERRCLS_DEBUG, (ErrCode)EL4001, (ErrVal)pst->event,
"stActvTsk: Illegal Event");
#endif
break;
}
SExitTsk();
RETVALUE(ret);
} /* end of stActvTsk */
#endif
/********************************************************************30**
End of file: l4_ex_ms.c@@/main/9 - Fri Sep 16 02:41:55 2005
*********************************************************************31*/
/********************************************************************40**
Notes:
*********************************************************************41*/
/********************************************************************50**
*********************************************************************51*/
/********************************************************************60**
Revision history:
*********************************************************************61*/
/********************************************************************80**
version pat init description
----------- ----- ---- ------------------------------------------------
1.1 --- aa 1. initial release
*********************************************************************81*/
/********************************************************************90**
ver pat init description
----------- -------- ---- -----------------------------------------------
1.2 --- aa 1. Changed the name of the function stActvTskNew to
stActvTsk
--- aa 2. Include cm_ss7.h
1.3 --- ssk 1. Added Phase 2+ variant
/main/4 --- ssk 1. update for MAP 1.5 release.
/main/5 --- ssk 1. update for MAP 1.6 release.
/main/6 --- jie 1. update for MAP 1.7 release.
/main/8 --- cp 1. update for MAP release 2.2
/main/9 --- st 1. Update for MAP release 2.3
*********************************************************************91*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -