Leaked source code of windows server 2003
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.

95 lines
2.9 KiB

  1. /******************************************************************************
  2. *
  3. * INTEL Corporation Proprietary Information
  4. * Copyright (c) 1994, 1995, 1996 Intel Corporation.
  5. *
  6. * This listing is supplied under the terms of a license agreement
  7. * with INTEL Corporation and may not be used, copied, nor disclosed
  8. * except in accordance with the terms of that agreement.
  9. *
  10. *****************************************************************************/
  11. /******************************************************************************
  12. *
  13. * $Workfile: h245sys.x $
  14. * $Revision: 1.2 $
  15. * $Modtime: 17 Jan 1997 14:39:22 $
  16. * $Log: S:\sturgeon\src\h245\include\vcs\h245sys.x_v $
  17. Rev 1.0 09 May 1996 21:05:06 EHOWARDX
  18. Initial revision.
  19. *
  20. * Rev 1.11.1.0 09 May 1996 19:38:26 EHOWARDX
  21. * Redesigned locking logic and added new functionality.
  22. Rev 1.11 26 Mar 1996 09:48:40 cjutzi
  23. - ok.. Added Enter&Leave&Init&Delete Critical Sections for Ring 0
  24. Rev 1.10 25 Mar 1996 18:06:48 cjutzi
  25. - wow.. this is emparassing.. undid what I undid..
  26. Rev 1.9 25 Mar 1996 17:54:02 cjutzi
  27. - backstep broke build
  28. Rev 1.8 25 Mar 1996 17:21:18 cjutzi
  29. - added oil level EnterCritical Section..
  30. Rev 1.7 19 Mar 1996 21:00:58 cjutzi
  31. - change realloc to take proper parameter size_t
  32. Rev 1.6 19 Mar 1996 17:41:58 helgebax
  33. added defintion for timer callbacks
  34. Rev 1.5 18 Mar 1996 12:41:52 cjutzi
  35. - added multiple timer queue
  36. Rev 1.4 02 Mar 1996 22:17:08 DABROWN1
  37. removed prototypes for h245_bcopy/h245_bzero
  38. Rev 1.3 26 Feb 1996 12:41:56 cjutzi
  39. - added bcopy
  40. Rev 1.2 09 Feb 1996 16:46:04 cjutzi
  41. - added Dollar Log..
  42. * $Ident$
  43. *
  44. *****************************************************************************/
  45. #ifndef _H245SYS_X_
  46. #define _H245SYS_X_
  47. #include "av_asn1.h"
  48. /* MACROS */
  49. #define H245_min(x,y) ( ( (x)>(y) )?(y):(x) )
  50. typedef (*H245TIMERCALLBACK)(struct InstanceStruct *pInstance, DWORD_PTR, void*);
  51. DWORD_PTR H245StartTimer (struct InstanceStruct *pInstance, void *context, H245TIMERCALLBACK cbTimer, DWORD dwTimeout);
  52. DWORD H245StopTimer (struct InstanceStruct *pInstance, DWORD_PTR id);
  53. //void H245InitTimer (struct InstanceStruct *pInstance);
  54. //void H245DeInitTimer(struct InstanceStruct *pInstance);
  55. #ifdef _IA_SPOX_
  56. #include <oil.x> /* need to define LockHandle */
  57. typedef LockHandle CRITICAL_SECTION;
  58. PUBLIC RESULT InitializeCriticalSection(CRITICAL_SECTION * phLock);
  59. PUBLIC RESULT EnterCriticalSection(CRITICAL_SECTION * phLock);
  60. PUBLIC RESULT LeaveCriticalSection(CRITICAL_SECTION * phLock);
  61. PUBLIC RESULT DeleteCriticalSection(CRITICAL_SECTION * phLock);
  62. #endif /* _IA_SPOX_ */
  63. #endif /* _H245SYS_X_ */
  64.