]> git.rkrishnan.org Git - dttsp.git/blobdiff - jDttSP/ringb.h
Major update
[dttsp.git] / jDttSP / ringb.h
index c92fd3cdfe14eb406936f5cb54513226f105bc84..55f4a2eb402d39042be1b7db98d0867e05240fc0 100644 (file)
@@ -169,4 +169,18 @@ extern void ringb_write_advance(ringb_t *rb, size_t cnt);
 
 extern size_t ringb_write_space(const ringb_t *rb);
 
+/* Fill the ring buffer for nbytes at the beginning with zeros 
+ * rb a pointer to the ring buffer structure
+ * nbytes the number of bytes to be written */
+
+extern void ringb_clear(ringb_t *rb, size_t nbytes);
+
+/* Reset the read and write pointers, making an empty buffer.
+ * This is not thread safe. 
+ * Fill the ring buffer for nbytes at the beginning with zeros 
+ * rb a pointer to the ring buffer structure
+ * nbytes the number of bytes to be written */
+
+extern void ringb_restart(ringb_t *rb, size_t nbytes);
+
 #endif