diff options
author | David M. Lee <dlee@digium.com> | 2013-07-03 19:46:50 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-07-03 19:46:50 +0000 |
commit | dbc588b02f0da1caffc53faffd0a91b8f3047907 (patch) | |
tree | 61153022395c99939b5c8b9d1c397cc1c1dd30ca /res/res_stasis_http_recordings.c | |
parent | ef032842f161c7e1a5fe4e2886733926e1c3a61c (diff) |
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
Diffstat (limited to 'res/res_stasis_http_recordings.c')
-rw-r--r-- | res/res_stasis_http_recordings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_stasis_http_recordings.c b/res/res_stasis_http_recordings.c index 5b8043251..e09ccbdb3 100644 --- a/res/res_stasis_http_recordings.c +++ b/res/res_stasis_http_recordings.c @@ -76,7 +76,7 @@ static void stasis_http_get_stored_recordings_cb( default: if (200 <= code && code <= 299) { is_valid = ari_validate_list(response->message, - ari_validate_stored_recording); + ari_validate_stored_recording_fn()); } else { ast_log(LOG_ERROR, "Invalid error response %d for /recordings/stored\n", code); is_valid = 0; @@ -218,7 +218,7 @@ static void stasis_http_get_live_recordings_cb( default: if (200 <= code && code <= 299) { is_valid = ari_validate_list(response->message, - ari_validate_live_recording); + ari_validate_live_recording_fn()); } else { ast_log(LOG_ERROR, "Invalid error response %d for /recordings/live\n", code); is_valid = 0; |