2017-02-22 10:56:11 -05:00
|
|
|
#pragma once
|
|
|
|
|
2017-02-23 15:15:33 -05:00
|
|
|
#include "ipfs/repo/config/identity.h"
|
|
|
|
#include "ipfs/repo/fsrepo/fs_repo.h"
|
|
|
|
#include "libp2p/peer/peerstore.h"
|
2017-03-19 14:40:16 -05:00
|
|
|
#include "libp2p/peer/providerstore.h"
|
2017-02-23 15:15:33 -05:00
|
|
|
|
2017-02-22 10:56:11 -05:00
|
|
|
enum NodeMode { MODE_OFFLINE, MODE_ONLINE };
|
2016-10-27 13:11:34 -05:00
|
|
|
|
|
|
|
struct IpfsNode {
|
2017-02-22 10:56:11 -05:00
|
|
|
enum NodeMode mode;
|
2017-02-22 11:48:42 -05:00
|
|
|
struct Identity* identity;
|
2017-02-22 10:56:11 -05:00
|
|
|
struct FSRepo* repo;
|
|
|
|
struct Peerstore* peerstore;
|
2017-03-19 14:40:16 -05:00
|
|
|
struct ProviderStore* providerstore;
|
2017-03-09 18:47:27 -05:00
|
|
|
struct s_ipfs_routing* routing;
|
2016-10-27 13:11:34 -05:00
|
|
|
//struct Pinner pinning; // an interface
|
|
|
|
//struct Mount** mounts;
|
|
|
|
// TODO: Add more here
|
|
|
|
};
|