Source code of Windows XP (NT5)
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
945 B

  1. /*++
  2. Copyright (c) 1998 - 2000 Microsoft Corporation
  3. Module Name:
  4. crv.h
  5. Abstract:
  6. Declarations for allocation/deallocation of call reference values
  7. Revision History:
  8. --*/
  9. #ifndef __h323ics_crv_h__
  10. #define __h323ics_crv_h__
  11. // This should be moved into some common.h file
  12. // The H.225 spec calls for a 2 byte call reference value
  13. typedef WORD CALL_REF_TYPE;
  14. // If this flag is set in the CallReferenceValue then the
  15. // PDU is sent by the originator of the call and vice-versa.
  16. #define CALL_REF_FLAG 0x8000
  17. HRESULT
  18. InitCrvAllocator (
  19. void
  20. );
  21. HRESULT
  22. CleanupCrvAllocator(
  23. void
  24. );
  25. // allocate a call reference value
  26. // uses random numbers to exploit sparse usage of the
  27. // call reference value space
  28. BOOL AllocCallRefVal(
  29. OUT CALL_REF_TYPE &CallRefVal
  30. );
  31. // frees a currently allocated call ref value
  32. void DeallocCallRefVal(
  33. IN CALL_REF_TYPE CallRefVal
  34. );
  35. #endif // __h323ics_crv_h__