LivoxProto1: port to sscl::co framework
Code now actually looks a lot cleaner, tbh.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user