You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
993 B
48 lines
993 B
/*++
|
|
|
|
Copyright (c) 1998 - 2000 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
crv.h
|
|
|
|
Abstract:
|
|
Declarations for allocation/deallocation of call reference values
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
#ifndef __h323ics_crv_h__
|
|
#define __h323ics_crv_h__
|
|
|
|
// This should be moved into some common.h file
|
|
// The H.225 spec calls for a 2 byte call reference value
|
|
typedef WORD CALL_REF_TYPE;
|
|
|
|
// If this flag is set in the CallReferenceValue then the
|
|
// PDU is sent by the originator of the call and vice-versa.
|
|
#define CALL_REF_FLAG 0x8000
|
|
|
|
HRESULT
|
|
InitCrvAllocator (
|
|
void
|
|
);
|
|
|
|
HRESULT
|
|
CleanupCrvAllocator(
|
|
void
|
|
);
|
|
|
|
// allocate a call reference value
|
|
// uses random numbers to exploit sparse usage of the
|
|
// call reference value space
|
|
BOOL AllocCallRefVal(
|
|
OUT CALL_REF_TYPE &CallRefVal
|
|
);
|
|
|
|
// frees a currently allocated call ref value
|
|
void DeallocCallRefVal(
|
|
IN CALL_REF_TYPE CallRefVal
|
|
);
|
|
|
|
#endif // __h323ics_crv_h__
|