Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

chm_lib.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CHM_UNCOMPRESSED   (0)
#define CHM_COMPRESSED   (1)
#define CHM_MAX_PATHLEN   (256)
#define CHM_PARAM_MAX_BLOCKS_CACHED   0
#define CHM_RESOLVE_SUCCESS   (0)
#define CHM_RESOLVE_FAILURE   (1)
#define CHM_ENUMERATE_NORMAL   (1)
#define CHM_ENUMERATE_META   (2)
#define CHM_ENUMERATE_SPECIAL   (4)
#define CHM_ENUMERATE_FILES   (8)
#define CHM_ENUMERATE_DIRS   (16)
#define CHM_ENUMERATE_ALL   (31)
#define CHM_ENUMERATOR_FAILURE   (0)
#define CHM_ENUMERATOR_CONTINUE   (1)
#define CHM_ENUMERATOR_SUCCESS   (2)

Typedefs

typedef unsigned long long LONGUINT64
typedef long long LONGINT64
typedef int(* CHM_ENUMERATOR )(struct chmFile *h, struct chmUnitInfo *ui, void *context)

Functions

chmFile * chm_open (const char *filename)
void chm_close (struct chmFile *h)
void chm_set_param (struct chmFile *h, int paramType, int paramVal)
int chm_resolve_object (struct chmFile *h, const char *objPath, struct chmUnitInfo *ui)
LONGINT64 chm_retrieve_object (struct chmFile *h, struct chmUnitInfo *ui, unsigned char *buf, LONGUINT64 addr, LONGINT64 len)
int chm_enumerate (struct chmFile *h, int what, CHM_ENUMERATOR e, void *context)
int chm_enumerate_dir (struct chmFile *h, const char *prefix, int what, CHM_ENUMERATOR e, void *context)
int chm_resolve_location (struct chmFile *h, unsigned long pos, struct chmUnitInfo *ui)


Define Documentation

#define CHM_COMPRESSED   (1)
 

Definition at line 61 of file chm_lib.h.

#define CHM_ENUMERATE_ALL   (31)
 

Definition at line 111 of file chm_lib.h.

Referenced by CHM::OpenFile().

#define CHM_ENUMERATE_DIRS   (16)
 

Definition at line 110 of file chm_lib.h.

#define CHM_ENUMERATE_FILES   (8)
 

Definition at line 109 of file chm_lib.h.

#define CHM_ENUMERATE_META   (2)
 

Definition at line 107 of file chm_lib.h.

#define CHM_ENUMERATE_NORMAL   (1)
 

Definition at line 106 of file chm_lib.h.

#define CHM_ENUMERATE_SPECIAL   (4)
 

Definition at line 108 of file chm_lib.h.

#define CHM_ENUMERATOR_CONTINUE   (1)
 

Definition at line 113 of file chm_lib.h.

Referenced by _get_hhc(), and _print_ui_index().

#define CHM_ENUMERATOR_FAILURE   (0)
 

Definition at line 112 of file chm_lib.h.

#define CHM_ENUMERATOR_SUCCESS   (2)
 

Definition at line 114 of file chm_lib.h.

#define CHM_MAX_PATHLEN   (256)
 

Definition at line 67 of file chm_lib.h.

#define CHM_PARAM_MAX_BLOCKS_CACHED   0
 

Definition at line 83 of file chm_lib.h.

#define CHM_RESOLVE_FAILURE   (1)
 

Definition at line 90 of file chm_lib.h.

Referenced by CHM::locate().

#define CHM_RESOLVE_SUCCESS   (0)
 

Definition at line 89 of file chm_lib.h.

Referenced by CHM::FillContent(), CHM::FillHomeContent(), and CHM::getPicture().

#define CHM_UNCOMPRESSED   (0)
 

Definition at line 60 of file chm_lib.h.


Typedef Documentation

typedef int(* CHM_ENUMERATOR)(struct chmFile *h, struct chmUnitInfo *ui, void *context)
 

Definition at line 103 of file chm_lib.h.

typedef long long LONGINT64
 

Definition at line 54 of file chm_lib.h.

typedef unsigned long long LONGUINT64
 

Definition at line 53 of file chm_lib.h.


Function Documentation

void chm_close struct chmFile *  h  ) 
 

Referenced by CHM::OpenFile(), CHM::suspend(), and CHM::~CHM().

int chm_enumerate struct chmFile *  h,
int  what,
CHM_ENUMERATOR  e,
void *  context
 

Referenced by CHM::OpenFile().

int chm_enumerate_dir struct chmFile *  h,
const char *  prefix,
int  what,
CHM_ENUMERATOR  e,
void *  context
 

struct chmFile* chm_open const char *  filename  ) 
 

Referenced by CHM::OpenFile(), and CHM::unsuspend().

int chm_resolve_location struct chmFile *  h,
unsigned long  pos,
struct chmUnitInfo ui
 

Referenced by CHM::locate().

int chm_resolve_object struct chmFile *  h,
const char *  objPath,
struct chmUnitInfo ui
 

Referenced by CHM::FillContent(), CHM::FillHomeContent(), and CHM::getPicture().

LONGINT64 chm_retrieve_object struct chmFile *  h,
struct chmUnitInfo ui,
unsigned char *  buf,
LONGUINT64  addr,
LONGINT64  len
 

Referenced by CHM::FillBuffer(), CHM::FillContent(), CHM::FillHomeContent(), and CHM::getPicture().

void chm_set_param struct chmFile *  h,
int  paramType,
int  paramVal
 


Generated on Sat Nov 5 16:49:16 2005 for OPIE by  doxygen 1.4.2