2016-10-27 01:14:07 +00:00
|
|
|
/**
|
|
|
|
* Initialize an IPFS repository
|
|
|
|
*/
|
|
|
|
#ifndef __CMD_IPFS_INIT_H__
|
|
|
|
#define __CMD_IPFS_INIT_H__
|
|
|
|
|
2016-10-31 16:13:42 +00:00
|
|
|
#include "ipfs/commands/command.h"
|
2016-10-27 01:14:07 +00:00
|
|
|
|
2016-10-27 02:13:32 +00:00
|
|
|
/***
|
|
|
|
* Returns a command structure customized for the init command
|
|
|
|
* @param command the struct to fill
|
|
|
|
* @returns 0 on failure, otherwise 1
|
|
|
|
*/
|
2016-11-10 13:28:51 +00:00
|
|
|
int ipfs_cmd_ipfs_init_command_new(struct Command* command);
|
2016-10-27 01:14:07 +00:00
|
|
|
|
2016-10-27 02:13:32 +00:00
|
|
|
/***
|
|
|
|
* Uninitializes all the dynamic memory caused by get_init_command
|
|
|
|
* @param command the struct
|
|
|
|
* @returns 0 on failure, otherwise 1
|
|
|
|
*/
|
2016-11-10 13:28:51 +00:00
|
|
|
int ipfs_cmd_ipfs_init_command_free(struct Command* command);
|
2016-10-27 02:13:32 +00:00
|
|
|
|
2016-10-27 01:14:07 +00:00
|
|
|
#endif
|