diff options
| author | Alexander Gavrilov | 2012-03-14 19:57:29 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-14 19:57:29 +0400 |
| commit | 560e977f0589ac1c0feb6ea825d20d351e325826 (patch) | |
| tree | e32bf2135261fa1e9129fae4c2c7ae068b6ef4cc /library/proto | |
| parent | c42e2ff053bc3acbded353112cd6412c8211f279 (diff) | |
| download | dfhack-560e977f0589ac1c0feb6ea825d20d351e325826.tar.gz dfhack-560e977f0589ac1c0feb6ea825d20d351e325826.tar.bz2 dfhack-560e977f0589ac1c0feb6ea825d20d351e325826.tar.xz | |
Implement trivial RPC interface for dfhack via TCP & protobufs.
Use it to make an executable capable of calling commands remotely.
Diffstat (limited to 'library/proto')
| -rw-r--r-- | library/proto/CoreProtocol.proto | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/library/proto/CoreProtocol.proto b/library/proto/CoreProtocol.proto index 33ec0f4a..eec5ef7f 100644 --- a/library/proto/CoreProtocol.proto +++ b/library/proto/CoreProtocol.proto @@ -34,26 +34,28 @@ message CoreErrorNotification { enum ErrorCode { CR_WOULD_BREAK = -2; CR_NOT_IMPLEMENTED = -1; - CR_FAILURE = 0; - CR_OK = 1; + CR_OK = 0; + CR_FAILURE = 1; CR_WRONG_USAGE = 2; }; required ErrorCode code = 1; } +message CoreVoidReply {} + message CoreBindRequest { required string method = 1; - optional string plugin = 2; - optional int32 min_version = 3; + required string input_msg = 2; + required string output_msg = 3; + optional string plugin = 4; } message CoreBindReply { required int32 assigned_id = 1; - required int32 version = 2; } -message CoreRunStringRequest { +message CoreRunCommandRequest { required string command = 1; repeated string arguments = 2; } |
