Functions | |
| ImplList (Block) | |
| Block | Block_deserialize (Buffer buf) |
| Deserialize a Buffer into a block. | |
| Buffer | ListBlock_serialize (ListBlock list) |
| Serialize a List of Block's into a Buffer. | |
| ListBlock | ListBlock_deserialize (Buffer buf) |
| Deserialize a Buffer into a List of Block's. | |
| void | insert_into_block (UUID *fid, UUID *nid, UUID *cid, size_t *seq) |
| INSERT into the Block table. | |
| ListBlock | select_from_block (UUID *bid, UUID *fid, UUID *nid, UUID *cid, size_t *seq) |
| SELECT from the Block table. | |
| ListBlock | Block_get_db (void) |
| Get the Block table from the database. | |
| void | Block_set_db (ListBlock blocks) |
| Write the database with the List of Block's. | |
| void | print_block (Block block) |
| Print a Block's data as a tuple. | |
| void Block_set_db | ( | ListBlock | blocks | ) |
| ImplList | ( | Block | ) |
| ListBlock ListBlock_deserialize | ( | Buffer | buf | ) |
| Buffer ListBlock_serialize | ( | ListBlock | list | ) |
Serialize a List of Block's into a Buffer.
Caller must free memory in Buffer.buf.
| list | the List of Block's that you want to serialize |
| void print_block | ( | Block | block | ) |