hayodea
62db724246
senseApiMgr: Fix formatting
2025-01-08 17:58:08 -04:00
hayodea
d14cef5328
Move senseApi libs into their own outer subdir
2025-01-08 17:28:21 -04:00
hayodea
988e84a545
Pretty up exception message
2025-01-08 15:09:18 -04:00
hayodea
4f2fbaa255
Fix NULL ptr use from dlerror()
2025-01-08 15:08:51 -04:00
hayodea
01ddb6d842
Only search in senseApiLibPath if it's actually set
2025-01-08 15:08:23 -04:00
hayodea
090f0d3b02
senseApiMgr: new method: loadAllSenseApisFromOptions
...
This method dlopens() all senseApi libs that were referenced by
device specs.
2025-01-08 15:06:31 -04:00
hayodea
bffa2b837c
Opts: Make singleton; senseApi: check senseApiLibPath, get senseApiDescFn pointer.
...
* OptionsParser now has a singleton.
* We now use the cmdline opt -p <senseApiLibPath>, and search for
the specified library in:
* senseApiLibPath, then CWD, then the place where our executable
is running from, and then finally we let the hosting OS do
its own search.
* We now call dlsym() on dlopen()'d libs to to get the senseApiDescFn
pointer.
2025-01-08 13:43:44 -04:00
hayodea
c864bcfdd2
SenseApis: Define descriptors exported by libs
2025-01-08 11:49:28 -04:00
hayodea
5a5e2fa25f
Fix const_cast and rearrange logic in senseApi method
2025-01-08 07:56:10 -04:00
hayodea
b9aa53822f
Indentation
2025-01-08 07:27:48 -04:00
hayodea
fe3f911db4
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.
2025-01-08 06:26:36 -04:00