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.

62 lines
1.4 KiB

  1. //============================================================================
  2. // Copyright (c) 1995, Microsoft Corporation
  3. //
  4. // File: queue.h
  5. //
  6. // History:
  7. // Abolade Gbadegesin Aug-8-1995 Created.
  8. //
  9. // Contains structures and macros used for various queues.
  10. //============================================================================
  11. #ifndef _QUEUE_H_
  12. #define _QUEUE_H_
  13. //----------------------------------------------------------------------------
  14. // type definitions for event message queue
  15. //
  16. typedef struct _EVENT_QUEUE_ENTRY {
  17. LIST_ENTRY EQE_Link;
  18. ROUTING_PROTOCOL_EVENTS EQE_Event;
  19. MESSAGE EQE_Result;
  20. } EVENT_QUEUE_ENTRY, *PEVENT_QUEUE_ENTRY;
  21. DWORD EnqueueEvent(PLOCKED_LIST pQueue,
  22. ROUTING_PROTOCOL_EVENTS Event,
  23. MESSAGE Result);
  24. DWORD DequeueEvent(PLOCKED_LIST pQueue,
  25. ROUTING_PROTOCOL_EVENTS *pEvent,
  26. PMESSAGE pResult);
  27. //
  28. // type definitions for the receive queue
  29. //
  30. typedef struct _RECV_QUEUE_ENTRY {
  31. LIST_ENTRY RQE_Link;
  32. PBYTE RQE_Routes;
  33. DWORD RQE_Command;
  34. } RECV_QUEUE_ENTRY, *PRECV_QUEUE_ENTRY;
  35. DWORD
  36. EnqueueRecvEntry(
  37. PLOCKED_LIST pQueue,
  38. DWORD dwCommand,
  39. PBYTE pRoutes
  40. );
  41. DWORD
  42. DequeueRecvEntry(
  43. PLOCKED_LIST pQueue,
  44. PDWORD dwCommand,
  45. PBYTE *ppRoutes
  46. );
  47. #endif // _QUEUE_H_