📄 rvmdmalias.h
字号:
}
}
$*/
#define RV_MDMSTREAMMODE_NOTSET RV_MEGACOSTREAMMODE_NOTSET
#define RV_MDMSTREAMMODE_INACTIVE RV_MEGACOSTREAMMODE_INACTIVE
#define RV_MDMSTREAMMODE_SENDONLY RV_MEGACOSTREAMMODE_SENDONLY
#define RV_MDMSTREAMMODE_RECVONLY RV_MEGACOSTREAMMODE_RECVONLY
#define RV_MDMSTREAMMODE_SENDRECV RV_MEGACOSTREAMMODE_SENDRECV
#define RV_MDMSTREAMMODE_LOOPBACK RV_MEGACOSTREAMMODE_LOOPBACK
typedef RvMegacoStreamMode RvMdmStreamMode;
/*------------------------------------------------------------------------------*/
typedef RvMegacoParameterList RvMdmParameterList;
#define rvMdmParameterListConstruct rvMegacoParameterListConstruct
#define rvMdmParameterListConstructA rvMegacoParameterListConstructA
#define rvMdmParameterListConstructCopy rvMegacoParameterListConstructCopy
#define rvMdmParameterListDestruct rvMegacoParameterListDestruct
#define rvMdmParameterListCopy rvMegacoParameterListCopy
#define rvMdmParameterListSet rvMegacoParameterListSet
#define rvMdmParameterListGet rvMegacoParameterListGet
#define rvMdmParameterListGet2 rvMegacoParameterListGet2
#define rvMdmParameterListForEach rvMegacoParameterListForEach
#define rvMdmParameterListIsEmpty rvMegacoParameterListIsEmpty
/*------------------------------------------------------------------------------*/
typedef RvMegacoPackageItem RvMdmPackageItem;
#define rvMdmPackageItemConstruct rvMegacoPackageItemConstruct
#define rvMdmPackageItemConstructA rvMegacoPackageItemConstructA
#define rvMdmPackageItemConstructCopy rvMegacoPackageItemConstructCopy
#define rvMdmPackageItemDestruct rvMegacoPackageItemDestruct
#define rvMdmPackageItemCopy rvMegacoPackageItemCopy
#define rvMdmPackageItemEqual rvMegacoPackageItemEqual
#define rvMdmPackageItemGetPackage rvMegacoPackageItemGetPackage
#define rvMdmPackageItemGetItem rvMegacoPackageItemGetItem
/*------------------------------------------------------------------------------*/
typedef RvMegacoParameterFunc RvMdmParameterFunc;
/*------------------------------------------------------------------------------*/
struct RvMdmContext_;
/* By now a MdmContext is just a MegacoContext */
typedef struct RvMegacoContext_ RvMdmContext;
/*$
{function:
{name: rvMdmContextForEachTerm}
{class: RvMdmContext}
{include: rvmdm.h}
{description:
{p: Calls the function given by the "func" parameter for each termination in the context,
until either the function returns rvTrue or there are no more terminations.}
}
{proto: RvBool rvMdmContextForEachTerm(RvMdmContext* x,RvMdmProcessEachTermCB func,void* data);}
{params:
{param: {n:x} {d:The context.}}
{param: {n:func} {d:The function to call.}}
{param: {n:data} {d:user data to pass to the function.}}
}
{returns:
The value returned by the last call to func.
}
}
$*/
/*RvBool rvMdmContextForEachTerm(RvMdmContext* x,RvMdmProcessEachTermCB func,void* data);*/
#define rvMdmContextForEachTerm rvMegacoContextForEachTerm
/*$
{function:
{name: rvMdmContextIsEmergencySet}
{class: RvMdmContext}
{include: rvmdm.h}
{description:
{p: Gets the emergency indicator for the context.}
}
{proto: RvBool rvMdmContextIsEmergencySet(RvMdmContext* x);}
{params:
{param: {n:x} {d:The context.}}
}
{returns:
rvTrue if the emergency indicator is set for the context.
}
}
$*/
/*RvBool rvMdmContextIsEmergencySet(RvMdmContext* x);*/
#define rvMdmContextIsEmergencySet rvMegacoContextIsEmergency
/*$
{function:
{name: rvMdmContextGetPriority}
{class: RvMdmContext}
{include: rvmdm.h}
{description:
{p: Gets the context priority as defined in Megaco.}
}
{proto: unsigned int rvMdmContextGetPriority(RvMdmContext* x);}
{params:
{param: {n:x} {d:The context.}}
}
{returns:
The context priority or zero if the priority is not set.
}
}
$*/
/*unsigned int rvMdmContextGetPriority(RvMdmContext* x);*/
#define rvMdmContextGetPriority rvMegacoContextGetPriority
/*------------------------------------------------------------------------------*/
typedef RvMegacoStatisticsDescriptor RvMdmStatisticsDescriptor;
#define rvMdmStatisticsDescriptorAddStatistic rvMegacoStatisticsDescriptorAddStatistic
/*------------------------------------------------------------------------------*/
/* Only "read" functions are exported for this descriptor */
typedef RvMegacoMediaDescriptor RvMdmMediaDescriptor;
#define rvMdmMediaDescriptorGetNumStreams rvMegacoMediaDescriptorGetNumStreams
#define rvMdmMediaDescriptorGetStream rvMegacoMediaDescriptorGetStream
#define rvMdmMediaDescriptorGetTerminationState rvMegacoMediaDescriptorGetTerminationState
/*------ Implied -----------------------------------------------------------------*/
typedef RvMegacoStreamDescriptor RvMdmStreamDescriptor;
/* Only "read" functions are exported for this descriptor */
#define rvMdmStreamDescriptorGetMode rvMegacoStreamDescriptorGetMode
#define rvMdmStreamDescriptorGetNumLocalDescriptors rvMegacoStreamDescriptorGetNumLocalDescriptors
#define rvMdmStreamDescriptorGetNumRemoteDescriptors rvMegacoStreamDescriptorGetNumRemoteDescriptors
#define rvMdmStreamDescriptorGetLocalDescriptor rvMegacoStreamDescriptorGetLocalDescriptor
#define rvMdmStreamDescriptorGetRemoteDescriptor rvMegacoStreamDescriptorGetRemoteDescriptor
#define rvMdmStreamDescriptorIsLocalDescriptorSet rvMegacoStreamDescriptorIsLocalDescriptorSet
#define rvMdmStreamDescriptorIsRemoteDescriptorSet rvMegacoStreamDescriptorIsRemoteDescriptorSet
#define rvMdmStreamDescriptorGetParameter rvMegacoStreamDescriptorGetParameter
#define rvMdmStreamDescriptorGetParameterList rvMegacoStreamDescriptorGetParameterList
#define rvMdmStreamDescriptorGetReserveValueMode rvMegacoStreamDescriptorGetReserveValueMode
#define rvMdmStreamDescriptorGetReserveGroupMode rvMegacoStreamDescriptorGetReserveGroupMode
#define rvMdmStreamDescriptorIsSet rvMegacoStreamDescriptorIsSet
/*------------------------------------------------------------------------------*/
typedef RvMegacoTerminationStateDescriptor RvMdmTerminationStateDescriptor;
/* Export subset of the functions */
#define rvMdmTerminationStateDescriptorConstruct rvMegacoTerminationStateDescriptorConstruct
#define rvMdmTerminationStateDescriptorConstructA rvMegacoTerminationStateDescriptorConstructA
#define rvMdmTerminationStateDescriptorConstructCopy rvMegacoTerminationStateDescriptorConstructCopy
#define rvMdmTerminationStateDescriptorDestruct rvMegacoTerminationStateDescriptorDestruct
#define rvMdmTerminationStateDescriptorSetParameter rvMegacoTerminationStateDescriptorSetParameter
#define rvMdmTerminationStateDescriptorGetParameter rvMegacoTerminationStateDescriptorGetParameter
#define rvMdmTerminationStateDescriptorGetParameterList rvMegacoTerminationStateDescriptorGetParameterList
#define rvMdmTerminationStateDescriptorIsSet rvMegacoTerminationStateDescriptorIsSet
/*------------------------------------------------------------------------------*/
/* implied */
/* Export subset of the functions */
typedef RvMegacoDigitMap RvMdmDigitMap;
#define rvMdmDigitMapConstruct rvMegacoDigitMapConstruct
#define rvMdmDigitMapConstructA rvMegacoDigitMapConstructA
#define rvMdmDigitMapCopy rvMegacoDigitMapCopy
#define rvMdmDigitMapDestruct rvMegacoDigitMapDestruct
#define rvMdmDigitMapAddPattern rvMegacoDigitMapAddPattern
#define rvMdmDigitMapSetStartTimeout rvMegacoDigitMapSetStartTimeout
#define rvMdmDigitMapSetShortTimeout rvMegacoDigitMapSetShortTimeout
#define rvMdmDigitMapSetLongTimeout rvMegacoDigitMapSetLongTimeout
/* implied */
/* Export subset of the functions */
typedef RvMegacoDigitString RvMdmDigitString;
#define rvMdmDigitStringConstruct rvMegacoDigitStringConstruct
#define rvMdmDigitStringConstructA rvMegacoDigitStringConstructA
#define rvMdmDigitStringDestruct rvMegacoDigitStringDestruct
#define rvMdmDigitStringAddElement rvMegacoDigitStringAddElement
/* implied */
/* Export subset of the functions */
typedef RvMegacoDigitPosition RvMdmDigitPosition;
#define rvMdmDigitPositionConstruct rvMegacoDigitPositionConstruct
#define rvMdmDigitPositionDestruct rvMegacoDigitPositionDestruct
#define rvMdmDigitPositionAddEvents rvMegacoDigitPositionAddEvents
#define rvMdmDigitPositionSetMultipleFlag rvMegacoDigitPositionSetMultipleFlag
#define rvMdmDigitPositionSetLongDurationFlag rvMegacoDigitPositionSetLongDurationFlag
#define rvMdmDigitPositionSetTimerMode rvMegacoDigitPositionSetTimerMode
/*------------------------------------------------------------------------------*/
typedef RvMegacoEventsDescriptor RvMdmEventsDescriptor;
/* Export subset of the functions (set) */
#define rvMdmEventsDescriptorConstruct rvMegacoEventsDescriptorConstruct
#define rvMdmEventsDescriptorConstructA rvMegacoEventsDescriptorConstructA
#define rvMdmEventsDescriptorDestruct rvMegacoEventsDescriptorDestruct
#define rvMdmEventsDescriptorAddEvent rvMegacoEventsDescriptorAddEvent
/* implied */
/* Export subset of the functions (set) - not including embbeded ones */
typedef RvMegacoRequestedEvent RvMdmRequestedEvent;
#define rvMdmRequestedEventConstruct rvMegacoRequestedEventConstruct
#define rvMdmRequestedEventConstructA rvMegacoRequestedEventConstructA
#define rvMdmRequestedEventDestruct rvMegacoRequestedEventDestruct
#define rvMdmRequestedEventSetParameter rvMegacoRequestedEventSetParameter
/*------------------------------------------------------------------------------*/
typedef RvMegacoEventBufferDescriptor RvMdmEventBufferDescriptor;
/* Export subset of the functions (set) */
#define rvMdmEventBufferDescriptorConstruct rvMegacoEventBufferDescriptorConstruct
#define rvMdmEventBufferDescriptorConstructA rvMegacoEventBufferDescriptorConstructA
#define rvMdmEventBufferDescriptorDestruct rvMegacoEventBufferDescriptorDestruct
#define rvMdmEventBufferDescriptorAddEvent rvMegacoEventBufferDescriptorAddEvent
/*------------------------------------------------------------------------------*/
/* Alias for Megaco errors */
#define RV_MDMERROR_BAD_REQUEST RV_MEGACOERROR_BAD_REQUEST
#define RV_MDMERROR_PROTOCOL RV_MEGACOERROR_PROTOCOL
#define RV_MDMERROR_UNAUTH RV_MEGACOERROR_UNAUTH
#define RV_MDMERROR_SYNTAX_TRANS RV_MEGACOERROR_SYNTAX_TRANS
#define RV_MDMERROR_NOTSPT_VERSION RV_MEGACOERROR_NOTSPT_VERSION
#define RV_MDMERROR_BAD_ID RV_MEGACOERROR_BAD_ID
#define RV_MDMERROR_UNKNWN_CTXTID RV_MEGACOERROR_UNKNWN_CTXTID
#define RV_MDMERROR_NOTAVAIL_CTXTID RV_MEGACOERROR_NOTAVAIL_CTXTID
#define RV_MDMERROR_UNKNWN_ACTION RV_MEGACOERROR_UNKNWN_ACTION
#define RV_MDMERROR_SYNTAX_ACTION RV_MEGACOERROR_SYNTAX_ACTION
#define RV_MDMERROR_UNKNWN_TERMID RV_MEGACOERROR_UNKNWN_TERMID
#define RV_MDMERROR_NOMATCH_TERMID RV_MEGACOERROR_NOMATCH_TERMID
#define RV_MDMERROR_NOTAVAIL_TERMID RV_MEGACOERROR_NOTAVAIL_TERMID
#define RV_MDMERROR_INUSE_TERMID RV_MEGACOERROR_INUSE_TERMID
#define RV_MDMERROR_UNKNWN_PKG RV_MEGACOERROR_UNKNWN_PKG
#define RV_MDMERROR_MISS_RMTDESCR RV_MEGACOERROR_MISS_RMTDESCR
#define RV_MDMERROR_SYNTAX_CMD RV_MEGACOERROR_SYNTAX_CMD
#define RV_MDMERROR_UNKNWN_CMD RV_MEGACOERROR_UNKNWN_CMD
#define RV_MDMERROR_UNKNWN_DESCR RV_MEGACOERROR_UNKNWN_DESCR
#define RV_MDMERROR_UNKNWN_PROPERTY RV_MEGACOERROR_UNKNWN_PROPERTY
#define RV_MDMERROR_UNKNWN_PARAM RV_MEGACOERROR_UNKNWN_PARAM
#define RV_MDMERROR_ILLEGAL_DESCR RV_MEGACOERROR_ILLEGAL_DESCR
#define RV_MDMERROR_REPEAT_DESCR RV_MEGACOERROR_REPEAT_DESCR
#define RV_MDMERROR_PKG_PROPERTY RV_MEGACOERROR_PKG_PROPERTY
#define RV_MDMERROR_PKG_EVENT RV_MEGACOERROR_PKG_EVENT
#define RV_MDMERROR_PKG_SIGNAL RV_MEGACOERROR_PKG_SIGNAL
#define RV_MDMERROR_PKG_STAT RV_MEGACOERROR_PKG_STAT
#define RV_MDMERROR_PKG_PARAM RV_MEGACOERROR_PKG_PARAM
#define RV_MDMERROR_ILLEGAL_DESCRPARAM RV_MEGACOERROR_ILLEGAL_DESCRPARAM
#define RV_MDMERROR_REPEAT_DESCRPARAM RV_MEGACOERROR_REPEAT_DESCRPARAM
#define RV_MDMERROR_ADDMULTIPLEX RV_MEGACOERROR_ADDMULTIPLEX
#define RV_MDMERROR_INTERNAL RV_MEGACOERROR_INTERNAL
#define RV_MDMERROR_NOTIMPLEMENTED RV_MEGACOERROR_NOTIMPLEMENTED
#define RV_MDMERROR_NOTREADY RV_MEGACOERROR_NOTREADY
#define RV_MDMERROR_NOTAVAIL_SRVC RV_MEGACOERROR_NOTAVAIL_SRVC
#define RV_MDMERROR_UNAUTH_CMD RV_MEGACOERROR_UNAUTH_CMD
#define RV_MDMERROR_CMD_NORESTART RV_MEGACOERROR_CMD_NORESTART
#define RV_MDMERROR_NOTAVAIL_RSRC RV_MEGACOERROR_NOTAVAIL_RSRC
#define RV_MDMERROR_NOTSPT_EVENT RV_MEGACOERROR_NOTSPT_EVENT
#define RV_MDMERROR_NOTSPT_SIGNAL RV_MEGACOERROR_NOTSPT_SIGNAL
#define RV_MDMERROR_NOTSPT_ANNOUNCE RV_MEGACOERROR_NOTSPT_ANNOUNCE
#define RV_MDMERROR_NOTSPT_MEDIA RV_MEGACOERROR_NOTSPT_MEDIA
#define RV_MDMERROR_NOTSPT_MODE RV_MEGACOERROR_NOTSPT_MODE
#define RV_MDMERROR_FULL_EVENTBUFFER RV_MEGACOERROR_FULL_EVENTBUFFER
#define RV_MDMERROR_FULL_DIGITMAP RV_MEGACOERROR_FULL_DIGITMAP
#define RV_MDMERROR_NO_DIGITMAP RV_MEGACOERROR_NO_DIGITMAP
#define RV_MDMERROR_TERM_SRVCCHANGE RV_MEGACOERROR_TERM_SRVCCHANGE
#define RV_MDMERROR_NOTAVAIL_BANDWIDTH RV_MEGACOERROR_NOTAVAIL_BANDWIDTH
#define RV_MDMERROR_HARDWARE RV_MEGACOERROR_HARDWARE
#define RV_MDMERROR_NTWRK_TEMP RV_MEGACOERROR_NTWRK_TEMP
#define RV_MDMERROR_NTWRK_PERM RV_MEGACOERROR_NTWRK_PERM
#define RV_MDMERROR_NOT_EXIST RV_MEGACOERROR_NOT_EXIST
/*------------------------------------------------------------------------------*/
/*$
{type:
{name: RvMdmSignalType}
{include: rvmdmalias.h}
{description:
{p: Signal type:}
{p: RV_MDMSIGNAL_DEFAULTTYPE - use the normal type for the given signal.}
{p: RV_MDMSIGNAL_ONOFF - the signal lasts until it is turned off.}
{p: RV_MDMSIGNAL_TIMEOUT - the signal lasts until it is turned off or a specific
period of time elapses}
{p: RV_MDMSIGNAL_BRIEF - the signal duration is so short that it will stop on its
own unless a new signal is applied that causes it to stop}
}
}
$*/
typedef RvMegacoSignalType RvMdmSignalType;
#define RV_MDMSIGNAL_DEFAULTTYPE RV_MEGACOSIGNAL_DEFAULTTYPE
#define RV_MDMSIGNAL_ONOFF RV_MEGACOSIGNAL_ONOFF
#define RV_MDMSIGNAL_TIMEOUT RV_MEGACOSIGNAL_TIMEOUT
#define RV_MDMSIGNAL_BRIEF RV_MEGACOSIGNAL_BRIEF
#endif /* RV_MDMALIAS_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -