rvmegacotermmgrutil.h

来自「h.248协议源码」· C头文件 代码 · 共 61 行

H
61
字号
/******************************************************************************
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 + =
减小字号Ctrl + -
显示快捷键?