c-ipfs/include/ipfs/core/ipfs_node.h
John Jones 93c4988f90 Added utility functions to multiaddress
Parsing of typical IP addresses is now easier
2017-03-09 18:47:27 -05:00

18 lines
420 B
C

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