2016-10-27 18:11:34 +00:00
|
|
|
//
|
|
|
|
// 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__
|
|
|
|
|
2016-10-31 16:13:42 +00:00
|
|
|
#include "ipfs/commands/req_log.h"
|
|
|
|
#include "ipfs/repo/config/config.h"
|
|
|
|
#include "ipfs/core/ipfs_node.h"
|
2016-10-27 18:11:34 +00:00
|
|
|
|
|
|
|
struct Context {
|
|
|
|
int online;
|
|
|
|
char* config_root;
|
|
|
|
struct ReqLog req_log;
|
2016-10-31 16:13:42 +00:00
|
|
|
struct RepoConfig config;
|
2016-10-27 18:11:34 +00:00
|
|
|
int (*load_config)(char* path);
|
|
|
|
struct IpfsNode node;
|
|
|
|
int (*construct_node)(struct IpfsNode* node);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* context_h */
|