Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

emb.h File Reference

Go to the source code of this file.

Data Structures

struct  embres_s
struct  embfile_s
struct  embpage_s

Typedefs

typedef embres_s embres_t
typedef embfile_s embfile_t
typedef embpage_s embpage_t

Enumerations

enum  { ET_FILE, ET_PAGE }

Functions

 LIST_HEAD (emblist_s, embres_s)
int emb_init (void)
int emb_term (void)
int emb_register (embres_t *r)
int emb_unregister (embres_t *r)
int emb_lookup (const char *filename, embres_t **pr)
int emb_count (void)
int emb_getn (size_t n, embres_t **pr)
int emb_open (const char *file, io_t **pio)


Typedef Documentation

typedef struct embfile_s embfile_t
 

Referenced by emb_open(), and emb_register().

typedef struct embpage_s embpage_t
 

typedef struct embres_s embres_t
 

Referenced by emb_getn(), emb_lookup(), emb_open(), emb_register(), and emb_unregister().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
ET_FILE 
ET_PAGE 

Definition at line 32 of file emb.h.


Function Documentation

int emb_count void   ) 
 

Definition at line 103 of file emb.c.

int emb_getn size_t  n,
embres_t **  pr
 

Definition at line 112 of file emb.c.

References embres_t.

int emb_init void   ) 
 

Definition at line 24 of file emb.c.

References register_pages().

Referenced by app_init().

int emb_lookup const char *  filename,
embres_t **  pr
 

Definition at line 79 of file emb.c.

References embres_t, and embres_s::filename.

Referenced by emb_open().

int emb_open const char *  file,
io_t **  pio
 

Definition at line 133 of file emb.c.

References codec_free(), codec_gzip_create(), codec_t, emb_lookup(), embfile_t, embres_t, ET_FILE, GZIP_UNCOMPRESS, io_codec_add_tail(), io_mem_create(), io_t, and embres_s::type.

Referenced by app_init().

int emb_register embres_t r  ) 
 

Definition at line 49 of file emb.c.

References embfile_t, embres_t, embres_s::filename, and embres_s::type.

int emb_term void   ) 
 

Definition at line 38 of file emb.c.

References unregister_pages().

Referenced by app_term().

int emb_unregister embres_t r  ) 
 

Definition at line 67 of file emb.c.

References embres_t.

LIST_HEAD emblist_s  ,
embres_s 
 


←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved