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.

60 lines
1.3 KiB

  1. //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
  2. //
  3. // cache.h
  4. //
  5. // XML document cache.
  6. //
  7. // History:
  8. //
  9. // 4/15/97 edwardp Created.
  10. //
  11. ////////////////////////////////////////////////////////////////////////////////
  12. //
  13. // Check for previous includes of this file.
  14. //
  15. #ifndef _CACHE_H_
  16. #define _CACHE_H_
  17. //
  18. // Type definitions.
  19. //
  20. typedef struct _tagCACHEITEM
  21. {
  22. LPTSTR szURL;
  23. DWORD dwParseFlags;
  24. FILETIME ftLastMod;
  25. DWORD dwCacheCount;
  26. IXMLDocument* pIXMLDocument;
  27. _tagCACHEITEM* pNext;
  28. } CACHEITEM, *PCACHEITEM;
  29. //
  30. // Function prototypes.
  31. //
  32. void Cache_Initialize(void);
  33. void Cache_Deinitialize(void);
  34. void Cache_EnterWriteLock(void);
  35. void Cache_LeaveWriteLock(void);
  36. void Cache_EnterReadLock(void);
  37. void Cache_LeaveReadLock(void);
  38. HRESULT Cache_AddItem(LPTSTR szURL,
  39. IXMLDocument* pIXMLDocument,
  40. DWORD dwParseFlags,
  41. FILETIME ftLastMod,
  42. DWORD dwCacheCount);
  43. HRESULT Cache_QueryItem(LPTSTR szURL,
  44. IXMLDocument** ppIXMLDocument,
  45. DWORD dwParseFlags);
  46. HRESULT Cache_RemoveItem(LPCTSTR szURL);
  47. void Cache_FreeAll(void);
  48. #endif // _CACHE_H_