c-ipfs/include/ipfs/core/ipfs_node.h

21 lines
497 B
C
Raw Normal View History

#pragma once
#include "ipfs/repo/config/identity.h"
#include "ipfs/repo/fsrepo/fs_repo.h"
#include "libp2p/peer/peerstore.h"
2017-03-19 19:40:16 +00:00
#include "libp2p/peer/providerstore.h"
enum NodeMode { MODE_OFFLINE, MODE_ONLINE };
2016-10-27 18:11:34 +00:00
struct IpfsNode {
enum NodeMode mode;
struct Identity* identity;
struct FSRepo* repo;
struct Peerstore* peerstore;
2017-03-19 19:40:16 +00:00
struct ProviderStore* providerstore;
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
};