0.4.00.4.10.4.2
|
Last change
on this file since 2c95d22 was
2c95d22,
checked in by Michael Medin <michael@…>, 22 months ago
|
|
2011-08-14 MickeM
- Rename Function to Registry in PythonScript API as well as some other function renames
- Started to clean up the helpers around the API
- Added support for execute to PythonScripts? to execute commands
- BUG: just realised that static plugin instances prevent multiple instances :)
Will fix but not now as it is not important (for me)...
- Added initial support for channels to PythonScript
Core still lacks support for subscribing to arbitrary channel
|
-
Property mode set to
100644
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | package ExecuteCommand;
|
|---|
| 2 |
|
|---|
| 3 | message Header {
|
|---|
| 4 | enum Type {
|
|---|
| 5 | REQUEST = 1;
|
|---|
| 6 | RESPONSE = 2;
|
|---|
| 7 | };
|
|---|
| 8 | enum Version {
|
|---|
| 9 | VERSION_1 = 1;
|
|---|
| 10 | };
|
|---|
| 11 | required Type type = 1;
|
|---|
| 12 | required Version version = 2;
|
|---|
| 13 | optional Version max_supported_version = 3;
|
|---|
| 14 |
|
|---|
| 15 | optional string sender = 17;
|
|---|
| 16 | optional string recipient = 18;
|
|---|
| 17 | optional int32 id = 19;
|
|---|
| 18 | };
|
|---|
| 19 |
|
|---|
| 20 | message Request {
|
|---|
| 21 | enum Version {
|
|---|
| 22 | VERSION_1 = 1;
|
|---|
| 23 | };
|
|---|
| 24 |
|
|---|
| 25 | required Version version = 1;
|
|---|
| 26 | optional int32 id = 2;
|
|---|
| 27 | required string command = 3;
|
|---|
| 28 | repeated string arguments = 4;
|
|---|
| 29 | };
|
|---|
| 30 |
|
|---|
| 31 | message ResponseData {
|
|---|
| 32 | enum Type {
|
|---|
| 33 | INT = 1;
|
|---|
| 34 | STRING = 1;
|
|---|
| 35 | FLOAT = 1;
|
|---|
| 36 | };
|
|---|
| 37 | message ResponseDataCell {
|
|---|
| 38 | required Type type = 1;
|
|---|
| 39 | optional string string_data = 2;
|
|---|
| 40 | optional int64 int_data = 3;
|
|---|
| 41 | optional double dloat_data = 4;
|
|---|
| 42 | }
|
|---|
| 43 | message ResponseDataRow {
|
|---|
| 44 | repeated ResponseDataCell cells = 1;
|
|---|
| 45 | }
|
|---|
| 46 | required string alias = 1;
|
|---|
| 47 | optional ResponseDataRow headers = 2;
|
|---|
| 48 | repeated ResponseDataRow rows = 3;
|
|---|
| 49 |
|
|---|
| 50 | }
|
|---|
| 51 |
|
|---|
| 52 | message Response {
|
|---|
| 53 | enum Code {
|
|---|
| 54 | OK = 0;
|
|---|
| 55 | WARNING = 1;
|
|---|
| 56 | CRITCAL = 2;
|
|---|
| 57 | UNKNOWN = 3;
|
|---|
| 58 | };
|
|---|
| 59 | enum Version {
|
|---|
| 60 | VERSION_1 = 1;
|
|---|
| 61 | };
|
|---|
| 62 |
|
|---|
| 63 | required Version version = 1;
|
|---|
| 64 | optional int32 id = 2;
|
|---|
| 65 | required string command = 5;
|
|---|
| 66 | repeated string arguments = 16;
|
|---|
| 67 |
|
|---|
| 68 | required Code result = 9;
|
|---|
| 69 | required string message = 10;
|
|---|
| 70 | }
|
|---|
| 71 |
|
|---|
| 72 | message RequestMessage {
|
|---|
| 73 | required Header header = 1;
|
|---|
| 74 | repeated Request payload = 2;
|
|---|
| 75 | }
|
|---|
| 76 | message ResponseMessage {
|
|---|
| 77 | required Header header = 1;
|
|---|
| 78 | repeated Response payload = 2;
|
|---|
| 79 | }
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
Note: See
TracBrowser
for help on using the repository browser.