I prefer to have separate functions, instead of going to some generic void* callbacks.
Those are hard to track and prone to introduce bugs in existing functional code. The
duplicated code should not be really big in size and having new dedicated functions for
comparison, etc ... will result also in extra size of the overall code.
I actually looked at reusing the xavp code when I implementing xavu recently and the code
got a lot of messy IF-ELSE conditions everywhere, functions with extra parameters to
indicate what type of variable, etc ... so I reverted and just made dedicated functions,
everything afterwards being easier to follow.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2337#issuecomment-636067888