More code for storage

Pushing through on the ipfs block put use case. Building out the
necessary code to write to the blockstore.
This commit is contained in:
John Jones 2016-11-28 16:13:46 -05:00
parent 74a5afe169
commit 4626b69381
14 changed files with 217 additions and 26 deletions

View file

@ -17,7 +17,7 @@ struct Block {
* @param block a pointer to the struct Block that will be created
* @returns true(1) on success
*/
int ipfs_blocks_block_new(unsigned char* data, size_t data_size, struct Block* block);
int ipfs_blocks_block_new(unsigned char* data, size_t data_size, struct Block** block);
/***
* Free resources used by the creation of a block