⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 au_ptli.c

📁 gsm map协议源代码
💻 C
📖 第 1 页 / 共 5 页
字号:
 
PUBLIC MatSMReq auLiSMReqMt [MAXMAUI] =
{
#ifdef LCMAUIMAT
   cmPkMatSMReq,      /* 0 - loosely coupled -fc */
#else
   PtUiMatSMReq,        /* 0 - loosely coupled, portable */
#endif
#ifdef MA
   MaUiMatSMReq,        /* 1 - tightly coupled, MAP user */
#else
   PtUiMatSMReq,        /* 1 - tightly coupled, portable */
#endif
#ifdef LWLCMAUIMAT
   cmPkMatSMReq,      /* 2 - lightweight loosely coupled -fc */
#else
   PtUiMatSMReq,        /* 2 - lightweight loosely coupled, portable */
#endif
};
#endif /* MAP_MSC || MAP_VLR || MAP_HLR || MAP_GSN */

#if (MAP_MSC || MAP_HLR || MAP_GSN)

/* Short Message Services Response */
PUBLIC MatSMRsp auLiSMRspMt [MAXMAUI] =
{
#ifdef LCMAUIMAT
   cmPkMatSMRsp,      /* 0 - loosely coupled -fc */
#else
   PtUiMatSMRsp,        /* 0 - loosely coupled, portable */
#endif
#ifdef MA
   MaUiMatSMRsp,        /* 1 - tightly coupled, MAP user */
#else
   PtUiMatSMRsp,        /* 1 - tightly coupled, portable */
#endif
#ifdef LWLCMAUIMAT
   cmPkMatSMRsp,      /* 2 - lightweight loosely coupled -fc */
#else
   PtUiMatSMRsp,        /* 2 - lightweight loosely coupled, portable */
#endif
};
#endif /* MAP_MSC || MAP_HLR || MAP_GSN */

/* --------------- Subscriber Management ------------------------------ */
#if (MAP_VLR || MAP_HLR || MAP_GSN || MAP_MLC)
/* Subscriber Management Response primitive */
 
PUBLIC MatSubMgmtRsp auLiSubMgmtRspMt [MAXMAUI] =
{
#ifdef LCMAUIMAT
   cmPkMatSubMgmtRsp,      /* 0 - loosely coupled -fc */
#else
   PtUiMatSubMgmtRsp,        /* 0 - loosely coupled, portable */
#endif
#ifdef MA
   MaUiMatSubMgmtRsp,        /* 1 - tightly coupled, MAP user */
#else
   PtUiMatSubMgmtRsp,        /* 1 - tightly coupled, portable */
#endif
#ifdef LWLCMAUIMAT
   cmPkMatSubMgmtRsp,      /* 2 - lightweight loosely coupled -fc */
#else
   PtUiMatSubMgmtRsp,        /* 2 - lightweight loosely coupled, portable */
#endif
};

#endif /* MAP_VLR || MAP_HLR || MAP_GSN || MAP_MLC */

#if (MAP_VLR || MAP_HLR || MAP_GSN)

/* Subscriber Management confirm primitive */
 
PUBLIC MatSubMgmtReq auLiSubMgmtReqMt [MAXMAUI] =
{
#ifdef LCMAUIMAT
   cmPkMatSubMgmtReq,      /* 0 - loosely coupled -fc */
#else
   PtUiMatSubMgmtReq,        /* 0 - loosely coupled, portable */
#endif
#ifdef MA
   MaUiMatSubMgmtReq,        /* 1 - tightly coupled, MAP user */
#else
   PtUiMatSubMgmtReq,        /* 1 - tightly coupled, portable */
#endif
#ifdef LWLCMAUIMAT
   cmPkMatSubMgmtReq,      /* 2 - lightweight loosely coupled -fc */
#else
   PtUiMatSubMgmtReq,        /* 2 - lightweight loosely coupled, portable */
#endif
};

#endif /* MAP_VLR || MAP_HLR || MAP_GSN */

/* --------------- PDP Context Activation Management ------------------ */
#if (MAP_HLR || MAP_GSN)
/* Pdp Cntxt Act.Response primitive */
 
PUBLIC MatNwReqPdpCntxtActvRsp auLiNwReqPdpCntxtActvRspMt [MAXMAUI] =
{
#ifdef LCMAUIMAT
   cmPkMatNwReqPdpCntxtActvRsp,      /* 0 - loosely coupled -fc */
#else
   PtUiMatNwReqPdpCntxtActvRsp,        /* 0 - loosely coupled, portable */
#endif
#ifdef MA
   MaUiMatNwReqPdpCntxtActvRsp,        /* 1 - tightly coupled, MAP user */
#else
   PtUiMatNwReqPdpCntxtActvRsp,        /* 1 - tightly coupled, portable */
#endif
#ifdef LWLCMAUIMAT
   cmPkMatNwReqPdpCntxtActvRsp,      /* 2 - lightweight loosely coupled -fc */
#else
   PtUiMatNwReqPdpCntxtActvRsp,        /* 2 - lightweight loosely coupled, portable */
#endif
};
 
/* Pdp Cntxt Act.confirm primitive */
 
PUBLIC MatNwReqPdpCntxtActvReq auLiNwReqPdpCntxtActvReqMt [MAXMAUI] =
{
#ifdef LCMAUIMAT
   cmPkMatNwReqPdpCntxtActvReq,      /* 0 - loosely coupled -fc */
#else
   PtUiMatNwReqPdpCntxtActvReq,        /* 0 - loosely coupled, portable */
#endif
#ifdef MA
   MaUiMatNwReqPdpCntxtActvReq,        /* 1 - tightly coupled, MAP user */
#else
   PtUiMatNwReqPdpCntxtActvReq,        /* 1 - tightly coupled, portable */
#endif
#ifdef LWLCMAUIMAT
   cmPkMatNwReqPdpCntxtActvReq,      /* 2 - lightweight loosely coupled -fc */
#else
   PtUiMatNwReqPdpCntxtActvReq,        /* 2 - lightweight loosely coupled, portable */
#endif
};
#endif /* MAP_HLR || MAP_GSN */

#if (MAP_REL98 || MAP_REL99)

/* --------------- Location Services Management ------------------ */

#if (MAP_MSC || MAP_HLR || MAP_MLC || (MAP_REL99 && MAP_REL4 && MAP_GSN))
/* Loc. Serv. Response primitive */
 
PUBLIC MatLocServRsp auLiLocServRspMt [MAXMAUI] =
{
#ifdef LCMAUIMAT
   cmPkMatLocServRsp,      /* 0 - loosely coupled -fc */
#else
   PtUiMatLocServRsp,        /* 0 - loosely coupled, portable */
#endif
#ifdef MA
   MaUiMatLocServRsp,        /* 1 - tightly coupled, MAP user */
#else
   PtUiMatLocServRsp,        /* 1 - tightly coupled, portable */
#endif
#ifdef LWLCMAUIMAT
   cmPkMatLocServRsp,      /* 2 - lightweight loosely coupled -fc */
#else
   PtUiMatLocServRsp,        /* 2 - lightweight loosely coupled, portable */
#endif
};
#endif /* MAP_HLR || MAP_MSC */

#if (MAP_MSC || MAP_MLC || (MAP_REL99 && MAP_REL4 && MAP_GSN))

/* Location Service confirm primitive */
 
PUBLIC MatLocServReq auLiLocServReqMt [MAXMAUI] =
{
#ifdef LCMAUIMAT
   cmPkMatLocServReq,      /* 0 - loosely coupled -fc */
#else
   PtUiMatLocServReq,        /* 0 - loosely coupled, portable */
#endif
#ifdef MA
   MaUiMatLocServReq,        /* 1 - tightly coupled, MAP user */
#else
   PtUiMatLocServReq,        /* 1 - tightly coupled, portable */
#endif
#ifdef LWLCMAUIMAT
   cmPkMatLocServReq,      /* 2 - lightweight loosely coupled -fc */
#else
   PtUiMatLocServReq,        /* 2 - lightweight loosely coupled, portable */
#endif
};
#endif /* MAP_MLC */

#endif /* MAP_REL98 || MAP_REL99 */

/*
*     Lower interface functions
*/
  
/* 
* 
*       Fun:   lower interface - MAP Bind Request
*  
*       Desc:  This function indicates the receipt of a bind request  
*  
*       Ret:   ROK      - ok
* 
*       Notes: None 
* 
*       File:  au_ptli.c
* 
*/

#ifdef ANSI
PUBLIC S16 AuLiMatBndReq
(
Pst      *pst,              /* post structure */
SuId     suId,              /* service user id */
SpId     spId               /* service provider id */
)
#else
PUBLIC S16 AuLiMatBndReq(pst, suId, spId)
Pst      *pst;              /* post structure */
SuId     suId;              /* service user id */
SpId     spId;              /* service provider id */
#endif
{
   TRC2(AuLiMatBndReq)
   RETVALUE((*auLiBndReqMt[pst->selector])(pst, suId, spId));
} /* end of AuLiMatBndReq */

/* 
* 
*       Fun:   lower interface - MAP Unbind Request
*  
*       Desc:  This function indicates the receipt of a unbind request  
*  
*       Ret:   ROK      - ok
* 
*       Notes: None 
* 
*       File:  au_ptli.c
* 
*/

#ifdef ANSI
PUBLIC S16 AuLiMatUbndReq
(
Pst      *pst,              /* post structure */
SpId     spId,              /* service provider id */
Reason   reason             /* Reason for unbind */
)
#else
PUBLIC S16 AuLiMatUbndReq(pst, spId,reason)
Pst      *pst;              /* post structure */
SpId     spId;              /* service provider id */
Reason   reason;            /* Reason for unbind */
#endif
{
   TRC2(AuLiMatUbndReq)
   RETVALUE((*auLiUbndReqMt[pst->selector])(pst, spId, spId));
} /* end of AuLiMatUbndReq */


/* 
* 
*       Fun:   lower interface - MAP Open Request
*  
*       Desc:  This function indicates the receipt of a MAP Open Request
*  
*       Ret:   ROK      - ok
* 
*       Notes: None 
* 
*       File:  au_ptli.c
* 
*/

#ifdef ANSI
PUBLIC S16 AuLiMatOpenReq
(
Pst      *pst,              /* post structure */
SpId     spId,              /* service user id */
MaDlgId  suDlgId,           /* Service user dialogue Id */
MaDlgId  spDlgId,           /* Service provider dialogue Id */
MaOpenEv *openEv            /* Open Event Structure */          
)
#else
PUBLIC S16 AuLiMatOpenReq(pst, spId, suDlgId, spDlgId, openEv)
Pst      *pst;              /* post structure */
SpId     spId;              /* service user id */
MaDlgId  suDlgId;           /* Service user dialogue Id */
MaDlgId  spDlgId;           /* Service provider dialogue Id */
MaOpenEv *openEv;           /* Open Event Structure */          
#endif
{
   TRC2(AuLiMatOpenReq)
   RETVALUE((*auLiOpenReqMt[pst->selector])(pst, spId, suDlgId, spDlgId, 
                                            openEv));
} /* end of AuLiMatOpenReq */

/* 
* 
*       Fun:   upper interface - MAP Open Response
*  
*       Desc:  This function indicates the receipt of MAP Open response
*  
*       Ret:   ROK      - ok
* 
*       Notes: None 
* 
*       File:  au_ptli.c
* 
*/

#ifdef ANSI
PUBLIC S16 AuLiMatOpenRsp
(
Pst      *pst,              /* post structure */
SpId     spId,              /* service user id */
MaDlgId  suDlgId,           /* Service user dialogue Id */
MaDlgId  spDlgId,           /* Service provider dialogue Id */
MaOpenEv *openEv            /* Open Event Structure */          
)
#else
PUBLIC S16 AuLiMatOpenRsp(pst, spId, suDlgId, spDlgId, openEv)
Pst      *pst;              /* post structure */
SpId     spId;              /* service user id */
MaDlgId  suDlgId;           /* Service user dialogue Id */
MaDlgId  spDlgId;           /* Service provider dialogue Id */
MaOpenEv *openEv;           /* Open Event Structure */          
#endif
{
   TRC2(AuLiMatOpenRsp)
   RETVALUE((*auLiOpenRspMt[pst->selector])(pst, spId, suDlgId, spDlgId, 
                                            openEv));
} /* end of AuLiMatOpenRsp */

/* 
* 
*       Fun:   upper interface - MAP Close Request
*  
*       Desc:  This function indicates the receipt of MAP Close Request
*  
*       Ret:   ROK      - ok
* 
*       Notes: None 
* 
*       File:  au_ptli.c
* 
*/

#ifdef ANSI
PUBLIC S16 AuLiMatCloseReq
(
Pst       *pst,             /* post structure */
SpId      spId,             /* service user id */
MaDlgId   suDlgId,          /* Service user dialogue Id */
MaDlgId   spDlgId,          /* Service provider dialogue Id */
MaCloseEv *closeEv          /* Close Event Structure */         
)
#else
PUBLIC S16 AuLiMatCloseReq(pst, spId, suDlgId, spDlgId, closeEv)
Pst       *pst;             /* post structure */
SpId      spId;             /* service user id */
MaDlgId   suDlgId;          /* Service user dialogue Id */
MaDlgId   spDlgId;          /* Service provider dialogue Id */
MaCloseEv *closeEv;         /* Close Event Structure */         
#endif
{
   TRC2(AuLiMatOpenReq)
   RETVALUE((*auLiCloseReqMt[pst->selector])(pst, spId, suDlgId, spDlgId, 
                                            closeEv));
} /* end of AuLiMatCloseReq */

/* 
* 
*       Fun:   upper interface - MAP Delimeter Request
*  
*       Desc:  This function indicates the receipt of MAP delimeter request.
*  
*       Ret:   ROK      - ok
* 
*       Notes: None 
* 
*       File:  au_ptli.c
* 
*/

#ifdef ANSI
PUBLIC S16 AuLiMatDelimReq
(

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -