2017-02-22 15:56:11 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
enum NodeMode { MODE_OFFLINE, MODE_ONLINE };
|
2016-10-27 18:11:34 +00:00
|
|
|
|
|
|
|
struct IpfsNode {
|
2017-02-22 15:56:11 +00:00
|
|
|
enum NodeMode mode;
|
2016-10-27 18:11:34 +00:00
|
|
|
//struct PeerId identity;
|
2017-02-22 15:56:11 +00:00
|
|
|
struct FSRepo* repo;
|
|
|
|
struct Peerstore* peerstore;
|
2016-10-27 18:11:34 +00:00
|
|
|
//struct Pinner pinning; // an interface
|
|
|
|
//struct Mount** mounts;
|
|
|
|
//struct PrivKey* private_key;
|
|
|
|
// TODO: Add more here
|
|
|
|
};
|