21 #ifndef OLA_OLACLIENTCORE_H_ 22 #define OLA_OLACLIENTCORE_H_ 27 #include "common/protocol/Ola.pb.h" 28 #include "common/protocol/OlaService.pb.h" 29 #include "common/rpc/RpcChannel.h" 30 #include "common/rpc/RpcController.h" 39 #include "ola/plugin_id.h" 42 #include "ola/timecode/TimeCode.h" 66 void SetCloseHandler(ClosedCallback *callback);
95 void FetchPluginDescription(ola_plugin_id plugin_id,
104 void FetchPluginState(ola_plugin_id plugin_id,
113 void FetchDeviceInfo(ola_plugin_id plugin_filter,
129 void FetchCandidatePorts(
unsigned int universe_id,
138 void ConfigureDevice(
unsigned int device_alias,
139 const std::string &msg,
148 void SetPluginState(ola_plugin_id plugin_id,
159 void SetPortPriorityInherit(
unsigned int device_alias,
172 void SetPortPriorityOverride(
unsigned int device_alias,
189 void FetchUniverseInfo(
unsigned int universe,
198 void SetUniverseName(
unsigned int universe,
199 const std::string &name,
208 void SetUniverseMergeMode(
unsigned int universe,
209 OlaUniverse::merge_mode mode,
221 void Patch(
unsigned int device_alias,
225 unsigned int universe,
235 void RegisterUniverse(
unsigned int universe,
245 void SendDMX(
unsigned int universe,
254 void FetchDMX(
unsigned int universe,
DMXCallback *callback);
262 void RunDiscovery(
unsigned int universe,
283 void RDMGet(
unsigned int universe,
288 unsigned int data_length,
301 void RDMSet(
unsigned int universe,
306 unsigned int data_length,
321 const ola::proto::DmxData* request,
322 ola::proto::Ack* response,
323 CompletionCallback* done);
327 std::auto_ptr<RepeatableDMXCallback> m_dmx_callback;
328 std::auto_ptr<ola::rpc::RpcChannel> m_channel;
329 std::auto_ptr<ola::proto::OlaServerService_Stub> m_stub;
338 ola::proto::PluginListReply *reply_ptr,
345 ola::proto::PluginDescriptionReply *reply,
352 ola::proto::PluginStateReply *reply,
359 ola::proto::DeviceInfoReply *reply,
366 ola::proto::DeviceConfigReply *reply,
373 ola::proto::Ack *reply,
380 ola::proto::Ack *reply,
387 ola::proto::UniverseInfoReply *reply,
394 ola::proto::UniverseInfoReply *reply,
401 ola::proto::DmxData *reply,
408 ola::proto::UIDListReply *reply_ptr,
415 ola::proto::RDMResponse *reply,
421 void GenericFetchCandidatePorts(
unsigned int universe_id,
422 bool include_universe,
428 void SendRDMCommand(
bool is_set,
429 unsigned int universe,
434 unsigned int data_length,
441 ola::proto::RDMResponse *reply,
444 static const char NOT_CONNECTED_ERROR[];
451 #endif // OLA_OLACLIENTCORE_H_ The constants for DMX source priorities.
A 0 arg, single use callback that returns void.
Definition: Callback.h:157
RDMStatusCode
RDM Status Codes.
Definition: RDMResponseCodes.h:45
Represents the RPC session between a client and server.
Definition: RpcSession.h:45
An RDM Command that represents responses (GET, SET or DISCOVER).
Definition: RDMCommand.h:457
PortDirection
The port direction.
Definition: ClientArgs.h:54
RegisterAction
The register action, used with OlaClient::RegisterUniverse()
Definition: ClientArgs.h:46
DiscoveryType
The type of discovery to run with OlaClient::RunDiscovery().
Definition: ClientArgs.h:62
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Creates dummy copy constructor and assignment operator declarations.
Definition: Macro.h:44
Types used as return values from the OLA Client.
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition: Descriptor.h:282
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
A RDM unique identifier (UID).
PatchAction
The patch action, used with OlaClient::Patch()
Definition: ClientArgs.h:38
A class used to hold a single universe of DMX data.
Arguments passed to the SendDMX() method.
Definition: ClientArgs.h:71
The low level C++ API to olad. Clients shouldn't use this directly. Instead use ola::client::OlaClien...
Definition: OlaClientCore.h:56
Definition: TimeCode.h:33
Types used as arguments for the OLA Client.
The base class for all 1 argument callbacks.
Definition: Callback.h:982
Arguments used with OlaClient::RDMGet() and OlaClient::RDMSet() methods.
Definition: ClientArgs.h:103
A 2 argument callback which can be called multiple times.
Definition: Callback.h:1895
A 1 argument callback which deletes itself after it's run.
Definition: Callback.h:1004
A 3 argument callback which deletes itself after it's run.
Definition: Callback.h:2850
Represents a RDM UID.
Definition: UID.h:57
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
A RpcController object is passed every time an RPC is invoked and is used to indicate the success or ...
Definition: RpcController.h:42
The various callbacks used with the OLA Client.
A 2 argument callback which deletes itself after it's run.
Definition: Callback.h:1907