21 #ifndef PLUGINS_E131_E131DEVICE_H_
22 #define PLUGINS_E131_E131DEVICE_H_
27 #include "olad/Device.h"
28 #include "olad/Plugin.h"
29 #include "plugins/e131/messages/E131ConfigMessages.pb.h"
35 using google::protobuf::RpcController;
37 using ola::plugin::e131::Request;
46 unsigned int input_ports;
47 unsigned int output_ports;
49 bool prepend_hostname;
57 prepend_hostname(
true),
69 string DeviceId()
const {
return "1"; }
71 void Configure(RpcController *controller,
72 const string &request,
74 google::protobuf::Closure *done);
85 bool m_prepend_hostname;
86 bool m_ignore_preview;
88 const unsigned int m_input_port_count, m_output_port_count;
89 vector<E131InputPort*> m_input_ports;
90 vector<E131OutputPort*> m_output_ports;
91 std::string m_ip_addr;
94 void HandlePreviewMode(Request *request,
string *response);
95 void HandlePortStatusRequest(
string *response);
99 static const char DEVICE_NAME[];
104 #endif // PLUGINS_E131_E131DEVICE_H_