2016-10-27 18:11:34 +00:00
|
|
|
#ifndef __CORE_BUILDER_H__
|
|
|
|
#define __CORE_BUILDER_H__
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2016-10-31 16:13:42 +00:00
|
|
|
#include "ipfs/commands/context.h"
|
|
|
|
#include "ipfs/repo/config/config.h"
|
2017-04-20 22:56:03 +00:00
|
|
|
#include "ipfs/core/ipfs_node.h"
|
2016-10-27 18:11:34 +00:00
|
|
|
|
|
|
|
struct BuildCfg {
|
|
|
|
int online;
|
|
|
|
// ExtraOpts map[string]bool
|
|
|
|
int permanent;
|
|
|
|
int nil_repo;
|
|
|
|
//struct RoutingOption routing;
|
|
|
|
//struct HostOption host;
|
|
|
|
//struct Repo repo;
|
|
|
|
};
|
|
|
|
|
2016-11-10 21:36:34 +00:00
|
|
|
int ipfs_core_builder_new_node(struct Context* context, struct BuildCfg* build_cfg, struct IpfsNode* buildConfig);
|
2016-10-27 18:11:34 +00:00
|
|
|
|
|
|
|
#endif /* builder_h */
|