?? rtputil.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 __RTPUTIL_H
#define __RTPUTIL_H
#include "rvselect.h"
#include "rvtimer.h"
#ifdef __cplusplus
extern "C" {
#endif
/************************************************************************
* RvRtpInitSelectEngine
* purpose: Initialize a select engine if necessary or just give the
* allocated one.
* input : None
* output : Select engine pointer
* return : RV_OK on success, negative value otherwise
************************************************************************/
RvStatus RvRtpInitSelectEngine(
OUT RvSelectEngine** selectEngine);
/************************************************************************
* RvRtpEndSelectEngine
* purpose: Deinitialize aselect engine if necessary or just decrease its
* reference count by one.
* input : None
* output : None
* return : RV_OK on success, negative value otherwise
************************************************************************/
RvStatus RvRtpEndSelectEngine(void);
/************************************************************************
* RvRtpGetSelectEngine
* purpose: Get the select engine used by the current thread
* input : defSelectEngine - Default select engine to use if none available
* output : None
* return : Select engine on success, NULL if not initialized in this thread.
************************************************************************/
RvSelectEngine* RvRtpGetSelectEngine(IN RvSelectEngine* defSelectEngine);
/************************************************************************
* RvRtpInitTimerQueue
* purpose: Initialize a timer queue if necessary or just reallocate its
* size
* input : None
* output : Timer queue pointer
* return : RV_OK on success, negative value otherwise
************************************************************************/
RvStatus RvRtpInitTimerQueue(
OUT RvTimerQueue** timerQ);
/************************************************************************
* RvRtpEndTimerQueue
* purpose: Deinitialize a timer queue if necessary.
* input : None
* output : None
* return : RV_OK on success, negative value otherwise
************************************************************************/
RvStatus RvRtpEndTimerQueue(void);
/************************************************************************
* RvRtpGetTimerQueue
* purpose: Get the timer queue used by the current thread
* input : defTimerQueue - Default timer queue to use if none available
* output : None
* return : Timer queue on success, NULL if not initialized in this thread.
************************************************************************/
RvTimerQueue* RvRtpGetTimerQueue(IN RvTimerQueue* defTimerQ);
void ConvertToNetwork(void *data, int pos, int n);
void ConvertFromNetwork(void *data, int pos, int n);
#ifdef __cplusplus
}
#endif
#endif /* __RTPUTIL_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -