Fix load errors related to the new ari_model_validators.
authorDavid M. Lee <dlee@digium.com>
Wed, 3 Jul 2013 19:46:50 +0000 (19:46 +0000)
committerDavid M. Lee <dlee@digium.com>
Wed, 3 Jul 2013 19:46:50 +0000 (19:46 +0000)
commitdbc588b02f0da1caffc53faffd0a91b8f3047907
tree61153022395c99939b5c8b9d1c397cc1c1dd30ca
parentef032842f161c7e1a5fe4e2886733926e1c3a61c
Fix load errors related to the new ari_model_validators.

The Asterisk strategy of loading modules with RTLD_LAZY to extract metadata
from the module works well enough, until you try to take the address of a
function.

If a module takes the address of a function, that function needs to be
resolved at load time. That kinda defeats RTLD_LAZY.

This patch adds some ari_validator_{id}_fn() wrapper functions for safely
getting the function pointer from a different module.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_stasis_http_bridges.c
res/res_stasis_http_channels.c
res/res_stasis_http_endpoints.c
res/res_stasis_http_events.c
res/res_stasis_http_recordings.c
res/res_stasis_http_sounds.c
res/stasis_http/ari_model_validators.c
res/stasis_http/ari_model_validators.h
rest-api-templates/ari_model_validators.c.mustache
rest-api-templates/ari_model_validators.h.mustache
rest-api-templates/res_stasis_http_resource.c.mustache