Files
LedD/protobuf/ledd.proto
Giovanni Harting d79dde527f first implementation of protobuf
restructure in client server model
loads of work still missing
2017-01-31 15:00:44 +01:00

51 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package ledd;
import "led.proto";
import "client.proto";
message LedD {
string hostname = 1;
string version = 2;
}
message WrapperMsg {
enum Type {
LED_GET_ALL = 0;
LED_ADD = 1;
CLIENT_ADD = 2;
CLIENT_SET_PERC_ALL = 3;
LED_PERC_SET = 4;
LED_PERC_GET = 5;
CLIENT_LED_SET = 6;
DISCOVER = 7;
CLIENT_GET = 8;
CLIENT_GET_LED_OPTIONS = 9;
CLIENT_SET_LOCAL_DIRECT = 10;
LEDGROUP_GET = 11;
LEDGROUP_GET_ALL = 12;
LEDGROUP_SET_COLOR = 13;
LEDGROUP_ADD = 14;
}
// Identifies which field is filled in.
Type type = 1;
// One of the following will be filled in.
LED led = 2;
LEDs leds = 3;
LEDGroup led_group = 4;
LEDGroups led_groups = 5;
LEDPercentage led_perc = 6;
LEDGroupColor led_group_color = 7;
LedD ledd = 8;
Client client = 9;
Clients clients = 10;
ClientSetLocalDirect client_set_direct = 11;
ClientLEDOptions client_led_options = 12;
ClientSetPercentageAll client_set_perc_all = 13;
LEDGroupPercentage led_group_perc = 14;
}