SenseApis: New senseApiManager and X11XcbApi

Still fleshing these out but ultimately senseApiMgr will manage
sense apis, and the X11XcbApi is where we'll connect to Xcb and
read the screen.
This commit is contained in:
2025-01-08 06:26:36 -04:00
parent f594d29a2d
commit fe3f911db4
8 changed files with 248 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
#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