<p></p>
<p>I don't think the usage of function pointers is a big problem, but it was just an idea. If you need to pass to many "switch" type of variables, it gets hard to follow, sure.<br>
The two functions xavi_add_value, xavi_add_value_after just operate on a global static list. This could be implemented type safe by just passing the list to it, without the need of void pointers.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2337#issuecomment-636074427">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNY2T674GEXF4TNUBLRT7ROHANCNFSM4NKNSDYQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKMY56UCRHN4LITXKTRT7ROHA5CNFSM4NKNSDY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEXU3TOY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2337#issuecomment-636074427",
"url": "https://github.com/kamailio/kamailio/pull/2337#issuecomment-636074427",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>