UJO Data Object Notation  0.9.1
C API
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Modules | Enumerations | Functions
UJO Reader: Traverse UJO data.

Modules

 UJO Reader: callbacks
 

Enumerations

enum  ujoAccessType { UJO_FILE = 0x100, UJO_MEMORY = 0x101, UJO_STREAM = 0x102 }
 access type. More...
 

Functions

ujoError ujo_new_memory_reader (ujo_reader **r)
 Create a new memory reader. More...
 
ujoError ujo_new_file_reader (ujo_reader **r, const char *filename)
 Create a new file reader. More...
 
ujoError ujo_free_reader (ujo_reader *r)
 Dispose UJO reader. More...
 
ujoError ujo_reader_get_type (ujo_reader *r, ujoAccessType *type)
 Get the type of a reader object. More...
 
ujoError ujo_reader_set_on_element (ujo_reader *r, ujoOnElementFunc f, ujoPointer data)
 Set onElement callback. More...
 
ujoError ujo_reader_set_buffer (ujo_reader *r, ujoByte *buffer, size_t bytes)
 Assign a buffer to the reader. More...
 
ujoError ujo_reader_parse (ujo_reader *r)
 Parse an UJO document. More...
 
ujoError ujo_reader_get_first (ujo_reader *r, ujo_element **v, ujoBool *eod)
 Get the first UJO element. More...
 
ujoError ujo_reader_get_next (ujo_reader *r, ujo_element **v, ujoBool *eod)
 Get the next UJO element. More...
 

Detailed Description

The reader object object is used to traverse UJO data.