home *** CD-ROM | disk | FTP | other *** search
/ Internet Publisher's Toolbox 2.0 / Internet Publisher's Toolbox.iso / internet / ntserver / wtsource / docid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-15  |  1.5 KB  |  69 lines

  1. /* WIDE AREA INFORMATION SERVER SOFTWARE
  2.    No guarantees or restrictions.  See the readme file for the full standard
  3.    disclaimer.  
  4. */
  5.  
  6. /* Copyright (c) CNIDR (see ../COPYRIGHT) */
  7.  
  8.  
  9. #ifndef docid_h
  10. #define docid_h
  11.  
  12. #include "cdialect.h"
  13. #include "zprot.h"
  14.  
  15. #define COPY_WITHOUT_RESTRICTION        0
  16. #define ALL_RIGHTS_RESERVED             1
  17. #define DISTRIBUTION_RESTRICTIONS_APPLY 2
  18.  
  19. /*---------------------------------------------------------------------------*/
  20.  
  21. typedef struct DocID{
  22.    any* originalServer;
  23.    any* originalDatabase;
  24.    any* originalLocalID;
  25.    any* distributorServer;
  26.    any* distributorDatabase;
  27.    any* distributorLocalID;
  28.    long copyrightDisposition;
  29. } DocID;
  30.  
  31. #ifdef __cplusplus
  32. /* declare these as C style functions */
  33. extern "C"
  34.     {
  35. #endif /* def __cplusplus */
  36.  
  37. DocID* makeDocID _AP((void));
  38.  
  39. DocID* copyDocID _AP((DocID* doc));
  40.  
  41. void freeDocID _AP((DocID* doc));
  42.  
  43. any* GetServer _AP((DocID* doc));
  44.  
  45. DocID* docIDFromAny _AP((any* rawDocID));
  46.  
  47. any* anyFromDocID _AP((DocID* docID));
  48.  
  49. any* GetDatabase _AP((DocID* doc));
  50.  
  51. any* GetLocalID _AP((DocID* doc));
  52.  
  53. long GetCopyrightDisposition _AP((DocID* doc));
  54.  
  55. long ReadDocID _AP((DocID* doc, FILE* file));
  56.  
  57. long WriteDocID _AP((DocID* doc, FILE* file));
  58.  
  59. Boolean cmpDocIDs _AP((DocID* d1,DocID* d2));
  60.  
  61. /*---------------------------------------------------------------------------*/
  62.  
  63. #ifdef __cplusplus
  64.     }
  65. #endif /* def __cplusplus */
  66.  
  67. #endif /* ifndef docid_h */
  68.  
  69.