21 lines
528 B
C
21 lines
528 B
C
#pragma once
|
|
|
|
#include "ipfs/repo/config/identity.h"
|
|
#include "ipfs/repo/fsrepo/fs_repo.h"
|
|
#include "ipfs/routing/routing.h"
|
|
#include "libp2p/peer/peerstore.h"
|
|
#include "libp2p/peer/providerstore.h"
|
|
|
|
enum NodeMode { MODE_OFFLINE, MODE_ONLINE };
|
|
|
|
struct IpfsNode {
|
|
enum NodeMode mode;
|
|
struct Identity* identity;
|
|
struct FSRepo* repo;
|
|
struct Peerstore* peerstore;
|
|
struct ProviderStore* providerstore;
|
|
struct IpfsRouting* routing;
|
|
//struct Pinner pinning; // an interface
|
|
//struct Mount** mounts;
|
|
// TODO: Add more here
|
|
};
|