25 lines
412 B
C
25 lines
412 B
C
|
|
#ifndef COMMAND_H
|
||
|
|
#define COMMAND_H
|
||
|
|
|
||
|
|
#include "string.h"
|
||
|
|
|
||
|
|
typedef struct Arena Arena;
|
||
|
|
typedef struct Discovery Discovery;
|
||
|
|
typedef struct Configuration Configuration;
|
||
|
|
|
||
|
|
struct Command
|
||
|
|
{
|
||
|
|
Arena* a;
|
||
|
|
StringView app;
|
||
|
|
const char** args;
|
||
|
|
};
|
||
|
|
|
||
|
|
typedef struct Argument Argument;
|
||
|
|
typedef struct Command Command;
|
||
|
|
|
||
|
|
Command command_create(Arena* a, Discovery* d, Configuration* c);
|
||
|
|
|
||
|
|
int command_run(Command* cmd);
|
||
|
|
|
||
|
|
#endif
|