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.

67 lines
823 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. list.h
  5. Abstract:
  6. List Entry Manipulation functions
  7. Author:
  8. Based on code by Mike Tsang (MikeTs)
  9. Stephane Plante (Splante)
  10. Environment:
  11. User mode only
  12. Revision History:
  13. --*/
  14. #ifndef _LIST_H_
  15. #define _LIST_H_
  16. typedef struct _LIST {
  17. struct _LIST *ListPrev;
  18. struct _LIST *ListNext;
  19. } LIST, *PLIST, **PPLIST;
  20. VOID
  21. LOCAL
  22. ListRemoveEntry(
  23. PLIST List,
  24. PPLIST LIstHead
  25. );
  26. PLIST
  27. LOCAL
  28. ListRemoveHead(
  29. PPLIST ListHead
  30. );
  31. PLIST
  32. LOCAL
  33. ListRemoveTail(
  34. PPLIST ListHead
  35. );
  36. VOID
  37. LOCAL
  38. ListInsertHead(
  39. PLIST List,
  40. PPLIST ListHead
  41. );
  42. VOID
  43. LOCAL
  44. ListInsertTail(
  45. PLIST List,
  46. PPLIST ListHead
  47. );
  48. #endif