OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_stream.c versions 1.19 and 1.20
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_stream.c 1.19 -> 1.20

--- l2_stream.c  2001/09/13 16:18:42     1.19
+++ l2_stream.c  2001/09/13 19:20:48     1.20
@@ -232,6 +232,24 @@
     return rv;
 }
 
+/* flush stream */
+l2_result_t l2_stream_flush(l2_stream_t *st)
+{
+    int i;
+    l2_result_t rv;
+
+    /* argument sanity check */
+    if (st == NULL)
+        return L2_ERR_ARG;
+
+    /* flush all attached channels */
+    for (i = 0; i < L2_MAX_CHANNELS && st->channels[i].ch != NULL; i++)
+        if ((rv = l2_channel_flush(st->channels[i].ch)) != L2_OK)
+            return rv;
+
+    return L2_OK;
+}
+
 /* destroy stream */
 l2_result_t l2_stream_destroy(l2_stream_t *st)
 {

CVSTrac 2.0.1