This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

FDS event handler with context

This is perhaps not so much a question as a request.

The FDS event handler, type `fds_cb_t`, has only one argument, type `fds_evt_t`, unlike (say) the two wire event handler, which has the twi event and a `void *` context. The context is super useful and I really wish that FDS had it, too.

This comes up when you are mixing C and C++ and want to do "the right thing" with your classes in terms of encapsulation.

Any chance a `void *` arg can be added someday?

In the meantime, I have to find some workarounds.

Thanks,

steven

Parents Reply Children
Related