Move senseApi libs into their own outer subdir

This commit is contained in:
2025-01-08 17:16:49 -04:00
parent 988e84a545
commit d14cef5328
16 changed files with 9193 additions and 82 deletions
+3 -5
View File
@@ -38,12 +38,10 @@ public:
class SenseApiLib
{
public:
typedef const CSenseApiDesc* (SenseApiDescGetterFn)(void);
public:
SenseApiLib(const std::string& path)
: libraryPath(path), handle(nullptr, reinterpret_cast<void(*)(void*)>(&dlclose))
: libraryPath(path),
handle(nullptr, reinterpret_cast<void(*)(void*)>(&dlclose))
{}
public:
@@ -58,7 +56,7 @@ public:
* This getter function should be visible to dlsym() so that Harikoff can
* find it in the lib after loading it, and call it.
*/
std::function<SenseApiDescGetterFn> getSenseApiDescriptor;
std::function<getSenseApiDescFn> getSenseApiDescriptor;
/**
* @brief Harikoff will call the `getSenseApiDescriptor` getter function and
-24
View File
@@ -1,24 +0,0 @@
#ifndef X11_XCB_API_H
#define X11_XCB_API_H
#include <string>
#include <vector>
#include <memory>
class X11XcbApi
{
public:
X11XcbApi(const std::string& displayName);
~X11XcbApi();
void addDevice(const std::string& deviceSpec);
void removeDevice(const std::string& deviceSpec);
void addAllDevicesFromSpecs(const std::vector<std::string>& deviceSpecs);
private:
std::string displayName;
std::vector<std::shared_ptr<DeviceManager::SensorDeviceSpec>> deviceSpecs;
// Add other necessary members and methods
};
#endif // X11_XCB_API_H