livoxGen1: Make use of livoxProto1_getPcloudDataFdDesc
This commit is contained in:
@@ -116,7 +116,7 @@ livoxProto1_getPcloudDataFdDesc(void)
|
||||
+ ": DeviceManager not initialized");
|
||||
}
|
||||
|
||||
return protoState.deviceManager->udpCommandDemuxer.pcloudDataSocketDesc;
|
||||
return protoState.deviceManager->udpCommandDemuxer.getPcloudDataFdDesc();
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <callback.h>
|
||||
#include <boost/asio/posix/stream_descriptor.hpp>
|
||||
|
||||
// Forward declarations
|
||||
namespace smo {
|
||||
|
||||
@@ -53,6 +53,13 @@ public:
|
||||
return cmdEndpointFdDesc;
|
||||
}
|
||||
|
||||
// Get shared pointer to pcloud data fd for use in IoUringAssemblyEngine
|
||||
std::shared_ptr<boost::asio::posix::stream_descriptor>
|
||||
getPcloudDataFdDesc() const
|
||||
{
|
||||
return pcloudDataSocketDesc;
|
||||
}
|
||||
|
||||
private:
|
||||
void setupSockets();
|
||||
void setupCommandSocket();
|
||||
|
||||
Reference in New Issue
Block a user