Readers
[Core API]


Modules

 First (stacks start with one of these)
 Additional (stacks may use these)

Functions

void ops_setup_memory_read (ops_parse_info_t **pinfo, ops_memory_t *mem, void *arg, ops_parse_cb_return_t callback(const ops_parser_content_t *, ops_parse_cb_info_t *), ops_boolean_t accumulate)
 Create parse_info and sets to read from memory.
void ops_teardown_memory_read (ops_parse_info_t *pinfo, ops_memory_t *mem)
 Frees pinfo and mem.
int ops_setup_file_read (ops_parse_info_t **pinfo, const char *filename, void *arg, ops_parse_cb_return_t callback(const ops_parser_content_t *, ops_parse_cb_info_t *), ops_boolean_t accumulate)
 Creates parse_info, opens file, and sets to read from file.
void ops_teardown_file_read (ops_parse_info_t *pinfo, int fd)
 Frees pinfo and closes fd.

Function Documentation

int ops_setup_file_read ops_parse_info_t **  pinfo,
const char *  filename,
void *  arg,
ops_parse_cb_return_t   callback(const ops_parser_content_t *, ops_parse_cb_info_t *),
ops_boolean_t  accumulate
 

Creates parse_info, opens file, and sets to read from file.

Parameters:
pinfo Address where new parse_info will be set
filename Name of file to read
arg Reader-specific arg
callback Callback to use when reading
accumulate Set if we need to accumulate as we read. (Usually false unless doing signature verification)
Note:
It is the caller's responsiblity to free parse_info and to close fd
See also:
ops_teardown_file_read()

void ops_setup_memory_read ops_parse_info_t **  pinfo,
ops_memory_t mem,
void *  arg,
ops_parse_cb_return_t   callback(const ops_parser_content_t *, ops_parse_cb_info_t *),
ops_boolean_t  accumulate
 

Create parse_info and sets to read from memory.

Parameters:
pinfo Address where new parse_info will be set
mem Memory to read from
arg Reader-specific arg
callback Callback to use with reader
accumulate Set if we need to accumulate as we read. (Usually false unless doing signature verification)
Note:
It is the caller's responsiblity to free parse_info
See also:
ops_teardown_memory_read()

void ops_teardown_file_read ops_parse_info_t pinfo,
int  fd
 

Frees pinfo and closes fd.

Parameters:
pinfo 
fd 
See also:
ops_setup_file_read()

void ops_teardown_memory_read ops_parse_info_t pinfo,
ops_memory_t mem
 

Frees pinfo and mem.

Parameters:
pinfo 
mem 
See also:
ops_setup_memory_read()


Generated on Thu May 23 00:00:02 2013 for OpenPGP:SDK by  doxygen 1.4.6