freetdm: more cleanup, remove unused callbacks

This commit is contained in:
Moises Silva committed 2010-06-08 14:14:14 -04:00
1 parent ff960d7862
commit ec4e2c5a45
4 files changed
+43 -80

No files matched your search

@@ -527,6 +527,26 @@ FT_DECLARE(ftdm_status_t) ftdm_channel_done(ftdm_channel_t *ftdmchan);
FT_DECLARE(ftdm_status_t) ftdm_span_close_all(void);
FT_DECLARE(ftdm_status_t) ftdm_channel_open_chan(ftdm_channel_t *ftdmchan);
/*!
* \brief Retrieves an event from the span
*
* \note
* This function is non-reentrant and not thread-safe.
* The event returned may be modified if the function is called again
* from a different thread or even the same. It is recommended to
* handle events from the same span in a single thread.
* WARNING: this function used to be public ( in freetdm.h )
* but since is really of no use to users better keep it here
*
* \param span The span to retrieve the event from
* \param event Pointer to store the pointer to the event
*
* \retval FTDM_SUCCESS success (at least one event available)
* \retval FTDM_TIMEOUT Timed out waiting for events
* \retval FTDM_FAIL failure
*/
FT_DECLARE(ftdm_status_t) ftdm_span_next_event(ftdm_span_t *span, ftdm_event_t **event);
/*!
\brief Assert condition
*/
@@ -137,6 +137,24 @@ typedef enum {
#define OOB_STRINGS "ONHOOK", "OFFHOOK", "WINK", "FLASH", "RING_START", "RING_STOP", "ALARM_TRAP", "ALARM_CLEAR", "NOOP", "CAS_BITS_CHANGE", "INVALID"
FTDM_STR2ENUM_P(ftdm_str2ftdm_oob_event, ftdm_oob_event2str, ftdm_oob_event_t)
/*! \brief Event types */
typedef enum {
FTDM_EVENT_NONE,
/* DTMF digit was just detected */
FTDM_EVENT_DTMF,
/* Out of band event */
FTDM_EVENT_OOB,
FTDM_EVENT_COUNT
} ftdm_event_type_t;
/*! \brief Generic event data type */
struct ftdm_event {
ftdm_event_type_t e_type;
uint32_t enum_id;
ftdm_channel_t *channel;
void *data;
};
typedef enum {
FTDM_SIGTYPE_NONE,
FTDM_SIGTYPE_ISDN,