windows-nt/Source/XPSP1/NT/net/rras/ip/nath323/crv.h

49 lines
945 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
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__