📄 layerapp.cpp
字号:
/********************************************************************16**
(c) COPYRIGHT 1989-1999 by Trillium Digital Systems, Inc.
All rights reserved.
This software is confidential and proprietary to Trillium
Digital Systems, Inc. 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 license agreement
between Trillium and its licensee.
Trillium warrants that for a period, as provided by the written
license agreement between Trillium and its licensee, this
software will perform substantially to Trillium specifications as
published at the time of shipment and the media used for delivery
of this software will be free from defects in materials and
workmanship.
TRILLIUM MAKES NO OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
A PARTICULAR PURPOSE WITH REGARD TO THIS SOFTWARE OR ANY RELATED
MATERIALS.
IN NO EVENT SHALL TRILLIUM BE LIABLE FOR ANY INDIRECT, SPECIAL,
OR CONSEQUENTIAL 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 License Agreement between Trillium and
its Licensee. Among other things, the Use of this software
may be limited to a particular type of Designated Equipment.
Before any installation, use or transfer of this software, please
consult the written License Agreement or contact Trillium at
the location set forth below in order to confirm that you are
engaging in a permissible Use of the software.
Trillium Digital Systems, Inc.
12100 Wilshire Boulevard, suite 1800
Los Angeles, CA 90025-7118, USA
Tel: +1 (310) 442-9222
Fax: +1 (310) 442-1162
Email: tech_support@trillium.com
Web: http://www.trillium.com
*********************************************************************17*/
/********************************************************************20**
Name: application
Type: C Source file
Desc: This file contains the C source code for MAP upper user
File: layerapp.c
Sid: layerapp.c 1.5 - 05/25/99 16:36:39
Prg: ssk
*********************************************************************21*/
/*#include "acc.h"*/
#if 0
#include "cp_global.h"
#endif
#include "envopt.h" /* environment options */
#include "envdep.h" /* environment dependent */
#include "envind.h" /* environment independent */
#include "gen.h" /* general layer */
#include "cm5.h"
#include "ssi.h"
#include "lma.h"
#include "cm_err.h"
#include "stu.h"
#include "cm_hash.h"
#include "mat.h"
#include "cm_ss7.h"
#include "ma.h"
#include "gen.x"
#include "cm5.x"
#include "ssi.x"
#include "cm_ss7.x"
#include "cm_lib.x"
#include "stu.x"
#include "lma.x"
#include "cm_hash.x"
#include "mat.x"
#include "ma.x"
#ifdef CP_CMS
#include "lha_app.h"
#endif
#include "clishell.h"
#include "au.h"
#include "au_opr.h"
#include "au_ext.h"
#include "au_dlg.h"
#include "au_tmr.h"
/* Local externs */
PUBLIC U32 auMemAlloc = 0;
PUBLIC U32 auMemFree = 0;
PUBLIC TskInit auInit;
/* global variables for timing */
extern int InitAppTimerSys();
EXTERN PUBLIC Void auTstInit();
EXTERN time_t startLt;
EXTERN time_t endLt;
#if 0 /* ma040.14: deletion */
#if 1 /* ma009.14: addition */
#ifdef MA_STATIC_EVT_STRUCT
PRIVATE MaAllSSEv auGlobDecEv; /* Global Decode Event structure */
#endif /* MA_STATIC_EVT_STRUCT */
#endif /* ma009.14: addition */
#endif /* ma040.14: deletion */
#if 0 /* ma040.14: deletion */
PUBLIC Data *auAlloc ARGS((Size size));
PUBLIC Void auFree ARGS((Data *data, Size size));
#endif /* ma040.14: deletion */
EXTERN S16 AppLiMatOpenInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaOpenEv *openEv));
EXTERN S16 AppLiMatOpenCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaOpenEv *openEv));
EXTERN S16 AppLiMatCloseInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaCloseEv *closeEv));
EXTERN S16 AppLiMatDelimInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId));
EXTERN S16 AppLiMatAbrtInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaAbrtEv *abrtEv));
EXTERN S16 AppLiMatNotInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
RCause cause));
EXTERN S16 AppLiMatDlgCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId));
EXTERN S16 AppLiMatStatInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaInvokeId *invkId,
U8 primType,
Status status));
EXTERN S16 AppLiMatSteInd ARGS((Pst *pst,
SuId suId,
CmSS7SteMgmt *steMgmt));
EXTERN S16 AppLiMatSteCfm ARGS((Pst *pst,
SuId suId,
CmSS7SteMgmt *steMgmt));
#ifdef AU
EXTERN S16 AppLiMatBndCfm ARGS(( Pst *pst,
SuId suId,
U8 status));
#endif
extern S16 AppLiMatOpenRsp ARGS((Pst *pst,
SpId spId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaOpenEv *openEv));
EXTERN S16 AppLiMatSteRsp ARGS((Pst *pst,
SpId spId,
CmSS7SteMgmt *steMgmt));
EXTERN S16 AppLiMatHOMgmtInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaHoEv *hoEv));
EXTERN S16 AppLiMatHOMgmtCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaHoEv *hoEv));
EXTERN S16 AppLiMatLocMgmtCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaLocEv *locEv));
EXTERN S16 AppLiMatLocMgmtInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaLocEv *locEv));
EXTERN S16 AppLiMatAuthMgmtCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaAuthEv *authEv));
EXTERN S16 AppLiMatAuthMgmtInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaAuthEv *authEv));
EXTERN S16 AppLiMatIMEIMgmtCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaIMEIEv *imeiEv));
EXTERN S16 AppLiMatIMEIMgmtInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaIMEIEv *imeiEv));
EXTERN S16 AppLiMatFRMgmtCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaFREv *frEv));
extern S16 AppLiMatFRMgmtInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaFREv *frEv));
EXTERN S16 AppLiMatOAMCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaOAMEv *oamEv));
EXTERN S16 AppLiMatOAMInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaOAMEv *oamEv));
/*added by Bruce for LCS 2003/7/3 */
EXTERN S16 AppLiMatLocServCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaLocServEv *locServEv));
EXTERN S16 AppLiMatLocServInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaLocServEv *locServEv));
EXTERN S16 AppLiMatCallMgmtCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaCallEv *callEv));
EXTERN S16 AppLiMatCallMgmtInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaCallEv *callEv));
EXTERN S16 AppLiMatSSInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaInvokeId *lnkId,
MaSSEv *ssEv));
EXTERN S16 AppLiMatSSCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaSSEv *ssEv));
EXTERN S16 AppLiMatSMCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaSMEv *smEv));
EXTERN S16 AppLiMatSMInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaSMEv *smEv));
extern S16 AppLiMatSubMgmtInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaSubEv *subEv));
extern S16 AppLiMatSubMgmtCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaSubEv *subEv));
EXTERN S16 AppLiMatNwReqPdpCntxtActvInd ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaPdpActvEv *pdpActvEv));
extern S16 AppLiMatNwReqPdpCntxtActvCfm ARGS((Pst *pst,
SuId suId,
MaDlgId suDlgId,
MaDlgId spDlgId,
MaInvokeId *invkId,
MaOprType oprType,
MaUsrErr *usrErr,
MaPrvErr *prvErr,
MaPdpActvEv *pdpActvEv));
/***************************************************************************************************/
/***************************************************************************************************/
#ifdef _cpluscplus
extern "C"
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -