diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-08-08 20:32:53 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-08-08 20:32:53 +0000 |
commit | 062becab8019e7079ceb804e2c23bf55959cd430 (patch) | |
tree | 4973d81c1698fbfd101b935102161eaaf630b285 /channels/chan_dahdi.c | |
parent | e5718974415bdd7585039d261b5ceeba25f39b1e (diff) |
Convert sig_analog to use a global callback table.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index ffd9bcaff..2049ea666 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -3768,7 +3768,7 @@ static int my_have_progressdetect(void *pvt) } } -static struct analog_callback dahdi_analog_callbacks = +struct analog_callback analog_callbacks = { .play_tone = my_play_tone, .get_event = my_get_event, @@ -12630,7 +12630,7 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf, tmp->outsigmod = conf->chan.outsigmod; if (analog_lib_handles(chan_sig, tmp->radio, tmp->oprmode)) { - analog_p = analog_new(dahdisig_to_analogsig(chan_sig), &dahdi_analog_callbacks, tmp); + analog_p = analog_new(dahdisig_to_analogsig(chan_sig), tmp); if (!analog_p) { destroy_dahdi_pvt(tmp); return NULL; |