コード例 #1
0
void OlaCallbackClient::HandleUniverseInfo(
    SingleUseCallback2<void, OlaUniverse&, const string&> *callback,
    const client::Result &result,
    const OlaUniverse &universe) {
  // There was a bug in the API and universe isn't const.
  OlaUniverse new_universe(
      universe.Id(),
      universe.MergeMode(),
      universe.Name(),
      universe.InputPortCount(),
      universe.OutputPortCount(),
      universe.RDMDeviceCount());
  callback->Run(new_universe, result.Error());
}