File: ArtnetConfigMessages.proto

package info (click to toggle)
ola 0.9.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,340 kB
  • ctags: 23,021
  • sloc: cpp: 129,922; python: 12,265; sh: 11,778; makefile: 2,288; ansic: 1,775; java: 518; xml: 214
file content (73 lines) | stat: -rw-r--r-- 2,015 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 *
 * ConfigMessages.proto
 * Defines the protocol buffers used to configure the Artnet device
 * Copyright (C) 2005 - 2008 Simon Newton
 */

package ola.plugin.artnet;

// This adjusts the ArtNet settings for this node.
message OptionsRequest {
  optional string short_name = 1;
  optional string long_name = 2;
  optional int32 subnet = 3;
  optional int32 net = 4;
}

message OptionsReply {
  required uint32 status = 1;
  required string short_name = 2;
  required string long_name = 3;
  required int32 subnet = 4;
  required int32 net = 5;
}

// This returns a list of nodes configured to receive on a particular universe.
message NodeListRequest {
  required int32 universe = 1;
}

message OutputNode {
  required uint32 ip_address = 1;
}

// The list of output nodes
message NodeListReply {
  repeated OutputNode node = 1;
}

message Request {
  enum RequestType {
    ARTNET_OPTIONS_REQUEST = 1;
    ARTNET_NODE_LIST_REQUEST = 2;
  }

  required RequestType type = 1;
  optional OptionsRequest options = 2;
  optional NodeListRequest node_list = 3;
}

message Reply {
  enum ReplyType {
    ARTNET_OPTIONS_REPLY = 1;
    ARTNET_NODE_LIST_REPLY = 2;
  }
  required ReplyType type = 1;

  optional OptionsReply options = 2;
  optional NodeListReply node_list = 3;
}