goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
137 stars 71 forks source link

libosdp: Added opaque argument to command_complete_callback #90

Closed ejverat closed 1 year ago

ejverat commented 1 year ago

Added opaque pointer argument to command complete callback, so at this way we can pass a context or instance class to be able to access to class members. This is similar to command or event callbacks behavior, we pass the void *arg to the callbacks.