eclipse-iceoryx / eclipse-iceoryx/iceoryx
sizeof(WaitSet) cannot be determined at compile time in c-binding
Open
feature request
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 492
- Avg merge
- 18h 57m
- Merged PRs (30d)
- 1
Description
In iceoryx_binding_c/include/iceoryx_binding_c/types.h the struct "iox_ws_storage_t_" needs to know the size of the Waitset which is in the C++ Code. Currently the size is hardcoded in "do_not_touch_me" array as magic number and this needs to be avoided.
Including C++ header is not an option due to breaking dependencies.
Possible solution is maybe to use codegeneration in cmake to fill a variable at compile time and insert it into the struct.
This applies also to the other arrays in types.h
Contributor guide
Assessment
This issue has not been assessed yet.