home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / COMMENT.ZIP / COMMENT.H < prev    next >
Text File  |  1991-06-26  |  2KB  |  38 lines

  1. #define FEALISTSIZE     1024            // arbitrary buffer size
  2. #define GEALISTSIZE     260             // arbitrary buffer size
  3.  
  4. int  getCommentEA(char  *szFilename,char  *szComment);
  5. int  addCommentEA(char  *szFilename,char  *szComment);
  6.  
  7. struct _EAval * getEA(int, char *);         // GETPUTEA.C prototypes
  8. int putEA(int, char *, void *, unsigned, unsigned);
  9.  
  10. struct _EA {                            // extended attribute header
  11.         unsigned char flags;            // critical flag etc.
  12.         unsigned char nsize;            // length of EA name (without null)
  13.         unsigned vsize;                 // total size of EA value
  14.         char name[1]; } ;               // EA name and value begin here
  15.  
  16. struct _EAval {                             // extended attribute value
  17.         unsigned type;                      // EA value type
  18.         unsigned size;                      // length of EA variable data
  19.         char data[1]; } ;                   // actual data begins here
  20.  
  21. struct _FEAList {                       // receives extended attributes
  22.         unsigned long size;             // total size of structure
  23.         char data[1]; } ;               // extended attributes begin here
  24.  
  25. struct _bGEA {                           // extended attribute target name
  26.         unsigned char size;             // length of name
  27.         char name[1]; } ;               // actual name begins here
  28.  
  29. struct _GEAList {                       // holds names of EAs to get
  30.         unsigned long size;             // total size of structure
  31.         struct _bGEA GEA; } ;            // name length and name text
  32.  
  33. struct _bEAOP {                          // used by all EA functions
  34.         void far *pGEAList;             // pointer to GEAList structure
  35.         void far *pFEAList;             // pointer to FEAList structure
  36.         unsigned long oError; } ;       // offset of error, if any
  37.  
  38.