fc5ebb72b9
No longer uses CPS. We also found and documented a potential bug in the way we deal with disablePcloudData during detachDeviceReq.
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
#ifndef LIVOX_GEN1_PROTO1_CPS_BRIDGE_H
|
|
#define LIVOX_GEN1_PROTO1_CPS_BRIDGE_H
|
|
|
|
#include <memory>
|
|
|
|
#include <adapters/smo/livoxProto1CpsAwaiters.h>
|
|
#include <spinscale/co/invokers.h>
|
|
#include <spinscale/componentThread.h>
|
|
|
|
#include "livoxGen1Internal.h"
|
|
|
|
namespace smo::stim_buff {
|
|
|
|
sscl::co::ViralNonPostingInvoker<adapters::smo::GetOrCreateDeviceResult>
|
|
coAwaitGetOrCreateDevice(
|
|
const std::shared_ptr<sscl::ComponentThread> &componentThread,
|
|
const std::string &deviceIdentifier,
|
|
const LivoxProviderParams ¶ms);
|
|
|
|
sscl::co::ViralNonPostingInvoker<adapters::smo::GetReturnModeResult>
|
|
coAwaitGetReturnMode(
|
|
const std::shared_ptr<sscl::ComponentThread> &componentThread,
|
|
const std::shared_ptr<livoxProto1::Device> &device);
|
|
|
|
sscl::co::ViralNonPostingInvoker<bool> coAwaitEnablePcloudData(
|
|
const std::shared_ptr<sscl::ComponentThread> &componentThread,
|
|
const std::shared_ptr<livoxProto1::Device> &device);
|
|
|
|
sscl::co::ViralNonPostingInvoker<bool> coAwaitDisablePcloudData(
|
|
const std::shared_ptr<sscl::ComponentThread> &componentThread,
|
|
const std::shared_ptr<livoxProto1::Device> &device);
|
|
|
|
sscl::co::ViralNonPostingInvoker<bool> coAwaitDestroyDevice(
|
|
const std::shared_ptr<sscl::ComponentThread> &componentThread,
|
|
const std::shared_ptr<livoxProto1::Device> &device);
|
|
|
|
} // namespace smo::stim_buff
|
|
|
|
#endif // LIVOX_GEN1_PROTO1_CPS_BRIDGE_H
|