]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: moved ftdm_channel_read_event() to freetdm.h
authorArnaldo Pereira <arnaldo@sangoma.com>
Thu, 25 Nov 2010 17:40:44 +0000 (15:40 -0200)
committerArnaldo Pereira <arnaldo@sangoma.com>
Thu, 25 Nov 2010 17:50:01 +0000 (15:50 -0200)
libs/freetdm/src/include/freetdm.h
libs/freetdm/src/include/private/ftdm_core.h

index f862ae184bb79677d64bc556519b59bd4ff3f00a..e5ffd09ba95597915220c94eb7d0be9b465ec843 100644 (file)
@@ -890,6 +890,23 @@ FT_DECLARE(ftdm_status_t) ftdm_channel_add_to_group(const char* name, ftdm_chann
 /*! \brief Remove the channel from a hunt group */
 FT_DECLARE(ftdm_status_t) ftdm_channel_remove_from_group(ftdm_group_t* group, 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.
+ *
+ * \param span The channel 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_FAIL failure
+ */
+FT_DECLARE(ftdm_status_t) ftdm_channel_read_event(ftdm_channel_t *ftdmchan, ftdm_event_t **event);
+
 /*! \brief Find a hunt group by id */
 FT_DECLARE(ftdm_status_t) ftdm_group_find(uint32_t id, ftdm_group_t **group);
 
index 7d3ee68176b9cb92f1d818c94b36774443a69067..06f899c8c93fddcfc3f171e3733f4ca68fe8a475 100644 (file)
@@ -615,23 +615,6 @@ FT_DECLARE(ftdm_status_t) ftdm_channel_open_chan(ftdm_channel_t *ftdmchan);
  */
 FT_DECLARE(ftdm_status_t) ftdm_span_next_event(ftdm_span_t *span, ftdm_event_t **event);
 
-/*! 
- * \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.
- *
- * \param span The channel 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_FAIL failure
- */
-FT_DECLARE(ftdm_status_t) ftdm_channel_read_event(ftdm_channel_t *ftdmchan, ftdm_event_t **event);
-
 /*! 
  * \brief Enqueue a DTMF string into the channel
  *