home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
COMMENT.ZIP
/
COMMENT.H
< prev
next >
Wrap
Text File
|
1991-06-26
|
2KB
|
38 lines
#define FEALISTSIZE 1024 // arbitrary buffer size
#define GEALISTSIZE 260 // arbitrary buffer size
int getCommentEA(char *szFilename,char *szComment);
int addCommentEA(char *szFilename,char *szComment);
struct _EAval * getEA(int, char *); // GETPUTEA.C prototypes
int putEA(int, char *, void *, unsigned, unsigned);
struct _EA { // extended attribute header
unsigned char flags; // critical flag etc.
unsigned char nsize; // length of EA name (without null)
unsigned vsize; // total size of EA value
char name[1]; } ; // EA name and value begin here
struct _EAval { // extended attribute value
unsigned type; // EA value type
unsigned size; // length of EA variable data
char data[1]; } ; // actual data begins here
struct _FEAList { // receives extended attributes
unsigned long size; // total size of structure
char data[1]; } ; // extended attributes begin here
struct _bGEA { // extended attribute target name
unsigned char size; // length of name
char name[1]; } ; // actual name begins here
struct _GEAList { // holds names of EAs to get
unsigned long size; // total size of structure
struct _bGEA GEA; } ; // name length and name text
struct _bEAOP { // used by all EA functions
void far *pGEAList; // pointer to GEAList structure
void far *pFEAList; // pointer to FEAList structure
unsigned long oError; } ; // offset of error, if any