Logo Search packages:      
Sourcecode: catdoc version File versions


Go to the documentation of this file.
 * @file   ole.h
 * @author Alex Ott <ott@jet.msk.su>
 * @date   03  2003
 * Version: $Id: ole.h,v 1.3 2003/11/14 14:32:39 vitus Exp $
 * Copyright: Alex Ott, 2003, 
 * @brief  

#ifndef _OLE_H
#define _OLE_H 1

#define BBD_BLOCK_SIZE     512
#define SBD_BLOCK_SIZE      64
#define PROP_BLOCK_SIZE    128
#define OLENAMELENGHT       32

typedef enum {
} oleType;

typedef struct {
      FILE *file;
      char name[OLENAMELENGHT+1];
      long int startOffset;
      long int curOffset;
      long int startBlock;
      long int curBlock;
      unsigned long int length;
      long int readed;
      long int offset;
      unsigned char *dirPos;
      oleType type;
      long int numOfBlocks;
      long int *blocks;             /**< array of blocks numbers */
      int isBigBlock;
} oleEntry;

 * Functions
FILE* ole_init(FILE *f, void *buffer, size_t bufSize);
FILE *ole_readdir(FILE *f);
int ole_eof(FILE *stream);
size_t ole_read(void *ptr, size_t size, size_t nmemb, FILE *stream);
int ole_open(FILE *);
int ole_close(FILE *);
void ole_finish(void);

extern size_t (*catdoc_read)(void *ptr, size_t size, size_t nmemb, FILE *stream);
extern int (*catdoc_eof)(FILE *stream);
void set_ole_func(void);
void set_std_func(void);

#endif /* _OLE_H */

Generated by  Doxygen 1.6.0   Back to index