3 * @author Alex Ott <ott@jet.msk.su>
5 * Version: $Id: ole.h,v 1.1 2006-02-24 17:44:06 vitus Exp $
6 * Copyright: Alex Ott, 2003,
16 #define BBD_BLOCK_SIZE 512
17 #define SBD_BLOCK_SIZE 64
18 #define PROP_BLOCK_SIZE 128
19 #define OLENAMELENGHT 32
20 #define MSAT_ORIG_SIZE 436
31 char name[OLENAMELENGHT+1];
34 unsigned long int length;
37 unsigned char *dirPos;
40 long int *blocks; /**< array of blocks numbers */
48 FILE* ole_init(FILE *f, void *buffer, size_t bufSize);
49 FILE *ole_readdir(FILE *f);
50 int ole_seek(FILE *stream, long offset, int whence);
51 long ole_tell(FILE *stream);
52 int ole_eof(FILE *stream);
53 size_t ole_read(void *ptr, size_t size, size_t nmemb, FILE *stream);
55 int ole_close(FILE *);
56 void ole_finish(void);
58 extern size_t (*catdoc_read)(void *ptr, size_t size, size_t nmemb, FILE *stream);
59 extern int (*catdoc_eof)(FILE *stream);
60 extern int (*catdoc_seek)(FILE *stream, long offset, int whence);
61 extern long (*catdoc_tell)(FILE *stream);
63 void set_ole_func(void);
64 void set_std_func(void);