]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_fifo: Document fifo_queue_pop_nameval()
authorTravis Cross <tc@traviscross.com>
Mon, 26 May 2014 14:52:04 +0000 (14:52 +0000)
committerTravis Cross <tc@traviscross.com>
Wed, 28 May 2014 01:32:03 +0000 (01:32 +0000)
src/mod/applications/mod_fifo/mod_fifo.c

index 1cf1d0cf9e2d1bb202ab4e5a9c3c8c508fb44830..ba05976f2efa35a5432eaaf3e5d19a761676e595 100644 (file)
@@ -245,7 +245,16 @@ static switch_status_t fifo_queue_pop(fifo_queue_t *queue, switch_event_t **pop,
        return SWITCH_STATUS_SUCCESS;
 }
 
-
+/*! \brief Remove matching event from queue
+ *
+ * Each event in the queue will be checked to see whether it has a
+ * header equal to name whose value is equal to val.  If it does, that
+ * event will be returned unless the event is for an outbound caller.
+ * If name starts with '+' or remove == 2 then forcing is enabled and
+ * the event will be returned in any case.  If remove > 0 then the
+ * returned event will be removed from the queue and the remaining
+ * elements shifted to make them contiguous.
+ */
 static switch_status_t fifo_queue_pop_nameval(fifo_queue_t *queue, const char *name, const char *val, switch_event_t **pop, int remove)
 {
        int i, j, force = 0;