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/sig_analog.h | |
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/sig_analog.h')
-rw-r--r-- | channels/sig_analog.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/sig_analog.h b/channels/sig_analog.h index e70ff7d26..13c92c657 100644 --- a/channels/sig_analog.h +++ b/channels/sig_analog.h @@ -239,6 +239,8 @@ struct analog_callback { int (* const have_progressdetect)(void *pvt); }; +/*! Global analog callbacks to the upper layer. */ +extern struct analog_callback analog_callbacks; struct analog_subchannel { @@ -254,8 +256,6 @@ struct analog_pvt { enum analog_sigtype sig; /* To contain the private structure passed into the channel callbacks */ void *chan_pvt; - /* Callbacks for various functions needed by the analog API */ - struct analog_callback *calls; /* All members after this are giong to be transient, and most will probably change */ struct ast_channel *owner; /*!< Our current active owner (if applicable) */ @@ -346,7 +346,7 @@ struct analog_pvt { int ringt_base; }; -struct analog_pvt *analog_new(enum analog_sigtype signallingtype, struct analog_callback *c, void *private_data); +struct analog_pvt *analog_new(enum analog_sigtype signallingtype, void *private_data); void analog_delete(struct analog_pvt *doomed); void analog_free(struct analog_pvt *p); |