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

📄 cmcrossreference.h

📁 基于h323协议的软phone
💻 H
字号:
/***********************************************************************
        Copyright (c) 2002 RADVISION Ltd.
************************************************************************
NOTICE:
This document contains information that is confidential and proprietary
to RADVISION Ltd.. No part of this document may be reproduced in any
form whatsoever without written prior approval by RADVISION Ltd..

RADVISION Ltd. reserve the right to revise this publication and make
changes without obligation to notify any person of such revisions or
changes.
***********************************************************************/

#ifndef _CM_CROSS_REFERENCE_H
#define _CM_CROSS_REFERENCE_H

#include "ema.h"
#include "cat.h"
#include "cm.h"
#include "rvwatchdog.h"

#ifdef __cplusplus
extern "C" {
#endif

/* RAS module handle */
RV_DECLARE_HANDLE(HRASMGR);

/* Automatic RAS module handle */
RV_DECLARE_HANDLE(HAUTORASMGR);

RV_DECLARE_HANDLE(HPCALL);
RV_DECLARE_HANDLE(HCONTROL);
RV_DECLARE_HANDLE(HQ931);

/* Automatic RAS call handle */
RV_DECLARE_HANDLE(HAUTORASCALL);


#define RAS_OUT_TX    (1)
#define RAS_IN_TX     (2)
#define CALL          (3)
#define CHAN          (4)




/************************************************************************
 *
 *                       Stack instance related
 *
 ************************************************************************/


/* todo: comment */
HEMA cmiInitCalls(HAPP hApp,int maxCalls);
void cmiEndCalls(HEMA calls);

HEMA cmiInitChannels(HAPP hApp,int maxCalls,int maxChannels);
void cmiEndChannels(HEMA channels);

/************************************************************************
 * cmiGetWatchdogHandle
 * purpose: Get the watchdog object from the stack's instance
 * input  : hApp    - Stack's application handle
 * output : none
 * return : Watchdog module pointer on success
 *          NULL on failure
 ************************************************************************/
RVAPI RvWatchdog* RVCALLCONV cmiGetWatchdogHandle(IN HAPP hApp);
RvLogSource* cmiGetWatchdogLogSource(IN HAPP hApp);


/************************************************************************
 * cmiGetRasHandle
 * purpose: Get the RAS module object from the stack's instance
 * input  : hApp    - Stack's application handle
 * output : none
 * return : RAS module handle on success
 *          NULL on failure
 ************************************************************************/
HRASMGR cmiGetRasHandle(IN HAPP hApp);


/************************************************************************
 * cmiGetAutoRasHandle
 * purpose: Get the Automatic RAS module object from the stack's instance
 * input  : hApp    - Stack's application handle
 * output : none
 * return : Automatic RAS module handle on success
 *          NULL on failure
 ************************************************************************/
HAUTORASMGR cmiGetAutoRasHandle(IN HAPP hApp);


/************************************************************************
 * cmiGetRasHooks
 * purpose: Get the hook functions set by the application of the CM
 * input  : hApp    - Stack's application handle
 * output : none
 * return : Pointer to the hook functions set by the application
 ************************************************************************/
CMPROTOCOLEVENT cmiGetRasHooks(IN HAPP hApp);







/************************************************************************
 *
 *                              Call related
 *
 ************************************************************************/


/* todo: comment */
HPCALL cmiGetCall(HCALL call);
HCALL cmiGetByCall(HPCALL call);
HQ931 cmiGetQ931(HCALL call);
HCALL cmiGetByQ931(HQ931 qCall);
HCONTROL cmiGetControl(HCALL call);
HCALL cmiGetByControl(HCONTROL ctrl);
HCHAN cmiGetChannelListForCtrl(HCONTROL ctrl);
HCHAN cmiGetChannelListForCall(HCALL call);
void cmiSetChannelListForCtrl(HCONTROL ctrl,HCHAN ch);
void cmiSetChannelListForCall(HCALL call,HCHAN ch);


/************************************************************************
 * cmiGetCatForCall
 * purpose: Get the CAT call handle from the stack's call handle
 * input  : hApp    - Stack's application handle
 * output : none
 * return : Cat call handle on success
 *          NULL on failure
 ************************************************************************/
RVHCATCALL cmiGetCatForCall(IN HCALL hsCall);


/************************************************************************
 * cmiGetAutoRas
 * purpose: Get the Automatic RAS call object from the stack's call handle
 * input  : hApp    - Stack's application handle
 * output : none
 * return : Automatic RAS call handle on success
 *          NULL on failure
 ************************************************************************/
HAUTORASCALL cmiGetAutoRas(IN HCALL hsCall);


/************************************************************************
 * cmiGetByAutoRas
 * purpose: Get the stack's call handle from the Automatic RAS call object
 * input  : hApp    - Stack's application handle
 * output : none
 * return : Stack's call handle
 *          NULL on failure
 ************************************************************************/
HCALL cmiGetByAutoRas(IN HAUTORASCALL aras);


#ifdef __cplusplus
}
#endif

#endif  /* _CM_CROSS_REFERENCE_H */

⌨️ 快捷键说明

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