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

📄 rvmegacotermmgrutil.h

📁 h.248协议源码
💻 H
字号:
/******************************************************************************
Filename   : rvmegacotermmgrutil.h
Description: Utililiary functions that can be used in more than one file
******************************************************************************
                Copyright (c) 1999 RADVision Inc.
************************************************************************
NOTICE:
This document contains information that is proprietary to RADVision LTD.
No part of this publication may be reproduced in any form whatsoever 
without written prior approval by RADVision LTD..

RADVision LTD. reserves the right to revise this publication and make 
changes without obligation to notify any person of such revisions or 
changes.
******************************************************************************
$Revision:$
$Date:11.15.00$
$Author: D.Elbert$
******************************************************************************/
#ifndef RV_MEGACOTERMMGRUTIL_H
#define RV_MEGACOTERMMGRUTIL_H

#include "rvtimer.h"
#include "rvmutex.h"
#include "rvmegacoobjects.h"

struct RvMdmError_;


/*------------------------------------------------------------------------------*/

void rvMegacoTermMgrUtilOverwriteError(struct RvMdmError_ * error,unsigned int code_,const char * msg_);
void rvMegacoTermMgrUtilAddError(RvMegacoCommandReply * reply,unsigned int code,const char * msg,RvAlloc * alloc);
RvBool rvMegacoTermMgrUtilAddError2(RvMegacoCommandReply * reply,struct RvMdmError_ * error,unsigned int code,const char * msg,RvAlloc * alloc);
void rvMegacoTermMgrUtilParamListFillDif(const RvMegacoParameterList * inList,RvMegacoParameterList * outList,RvMegacoParameterList * difList);
RvBool	rvMegacoTermMgrUtilIsCmdRspValid(const RvMegacoCommandReply *x);

/*------------------------------------------------------------------------------*/
/* Note: timers are not destructed, just invalidated. 
   The callback function will be responsible of destructing and 
   releasing the timer */
typedef void (*rvMegacoTermTimerCB)(RvTimer*, void*);
typedef struct RvMegacoTermTimer {
	RvTimer				  timer;
	RvBool				  valid;
	void*				  data;
	rvMegacoTermTimerCB   func;
	unsigned int          loopCnt;
	RvMutex*              mutex;
	RvAlloc*			  alloc;
} RvMegacoTermTimer;

RvMegacoTermTimer* rvMegacoTermTimerCreate(RvAlloc* alloc,RvMilliseconds ms, 
										  rvMegacoTermTimerCB func, void* data,
										  RvMutex* mutex);
/* Call AFTER aquiring callback */
void rvMegacoTermTimerCancel(RvMegacoTermTimer* t);

#endif /* RV_MEGTERMMGRUTIL_H */

⌨️ 快捷键说明

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