LivoxProto1: port to sscl::co framework

Code now actually looks a lot cleaner, tbh.
This commit is contained in:
2026-05-28 20:13:12 -04:00
parent bbc16dc4c4
commit 25efccf6c5
20 changed files with 1275 additions and 2145 deletions
+2 -3
View File
@@ -18,12 +18,11 @@ or event-driven APIs.
include/adapters/
README.md
boostAsio/
<boost asio adapter awaiters>
deadlineTimerAReq.h
opencl/
<OpenCL adapter awaiters>
smo/
cpsCallbackAReq.h
livoxProto1CpsAwaiters.h
<other SMO/internal callback adapters>
```
@@ -32,7 +31,7 @@ include/adapters/
- Name adapter awaiter wrapper functions `get<fnName>AReqAwaiter()`, where
`<fnName>` is the wrapped CPS/API request symbol with its library prefix
removed and each `_`-delimited segment Pascal-cased (e.g.
`livoxProto1_getOrCreateDeviceReq``getGetOrCreateDeviceReqAReqAwaiter()`).
`someLib_someOperationReq``getSomeOperationReqAReqAwaiter()`).
- Keep adapters small and single-purpose; but unify where possible to reduce
code duplication.
- Make result types explicit for multi-argument callbacks.