2016-12-12 11:27:06 +00:00
|
|
|
#ifndef __IPFS_IMPORTER_IMPORTER_H__
|
|
|
|
#define __IPFS_IMPORTER_IMPORTER_H__
|
|
|
|
|
2016-12-14 11:25:09 +00:00
|
|
|
#include "ipfs/node/node.h"
|
2016-12-14 17:07:43 +00:00
|
|
|
#include "ipfs/repo/fsrepo/fs_repo.h"
|
2016-12-14 11:25:09 +00:00
|
|
|
|
2016-12-12 11:27:06 +00:00
|
|
|
/**
|
|
|
|
* Creates a node based on an incoming file
|
|
|
|
* @param file_name the file to import
|
|
|
|
* @param node the root node (could have links to others)
|
|
|
|
* @returns true(1) on success
|
|
|
|
*/
|
2016-12-14 17:07:43 +00:00
|
|
|
int ipfs_import_file(const char* fileName, struct Node** node, struct FSRepo* fs_repo);
|
2016-12-12 11:27:06 +00:00
|
|
|
|
|
|
|
#endif /* INCLUDE_IPFS_IMPORTER_IMPORTER_H_ */
|