]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/ringbuf.h
isisd: implemented the 'sequence-number-skipped' notification
[mirror_frr.git] / lib / ringbuf.h
index 2288a2716fcbd042fcc3f6b4e8c7db78709d0a7a..15049e3eeab7d426621c246d40fcd79c610b39f7 100644 (file)
@@ -98,6 +98,16 @@ size_t ringbuf_get(struct ringbuf *buf, void *data, size_t size);
 size_t ringbuf_peek(struct ringbuf *buf, size_t offset, void *data,
                    size_t size);
 
+/*
+ * Copy data from one ringbuf to another.
+ *
+ * @param to   destination ringbuf
+ * @param from source ringbuf
+ * @param size how much data to copy
+ * @return amount of data copied
+ */
+size_t ringbuf_copy(struct ringbuf *to, struct ringbuf *from, size_t size);
+
 /*
  * Reset buffer. Does not wipe.
  *