2017-02-22 15:56:11 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-02-23 20:15:33 +00:00
|
|
|
#include "ipfs/repo/config/identity.h"
|
|
|
|
#include "ipfs/repo/fsrepo/fs_repo.h"
|
|
|
|
#include "libp2p/peer/peerstore.h"
|
|
|
|
|
2017-02-22 15:56:11 +00:00
|
|
|
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;
|
2017-02-22 16:48:42 +00:00
|
|
|
struct Identity* identity;
|
2017-02-22 15:56:11 +00:00
|
|
|
struct FSRepo* repo;
|
|
|
|
struct Peerstore* peerstore;
|
2017-03-09 23:47:27 +00:00
|
|
|
struct s_ipfs_routing* routing;
|
2016-10-27 18:11:34 +00:00
|
|
|
//struct Pinner pinning; // an interface
|
|
|
|
//struct Mount** mounts;
|
|
|
|
// TODO: Add more here
|
|
|
|
};
|