c-ipfs/commands/context.h

27 lines
507 B
C

//
// context.h
// c-ipfs
//
// Created by John Jones on 10/27/16.
// Copyright © 2016 JMJAtlanta. All rights reserved.
//
#ifndef __COMMANDS_CONTEXT_H__
#define __COMMANDS_CONTEXT_H__
#include "req_log.h"
#include "../repo/config/config.h"
#include "../core/ipfs_node.h"
struct Context {
int online;
char* config_root;
struct ReqLog req_log;
struct Config config;
int (*load_config)(char* path);
struct IpfsNode node;
int (*construct_node)(struct IpfsNode* node);
};
#endif /* context_h */