summaryrefslogtreecommitdiff
path: root/mcast_image.h
diff options
context:
space:
mode:
Diffstat (limited to 'mcast_image.h')
-rw-r--r--mcast_image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcast_image.h b/mcast_image.h
index 26c675e..8ca2102 100644
--- a/mcast_image.h
+++ b/mcast_image.h
@@ -9,6 +9,7 @@ struct image_pkt_hdr {
uint32_t blocksize;
uint32_t block_crc;
uint32_t block_nr;
+ uint32_t pkt_sequence;
uint16_t pkt_nr;
uint16_t nr_pkts;
uint32_t thislen;
@@ -32,9 +33,14 @@ void fec_free(struct fec_parms *p);
* fec - buffer for packet to be generated
* index - index of packet to be generated (0 <= index < n)
* sz - data packet size
+ *
+ * _linear version just takes a pointer to the raw data; no
+ * mucking about with packet pointers.
*/
void fec_encode(struct fec_parms *code, unsigned char *src[],
unsigned char *fec, int index, int sz);
+void fec_encode_linear(struct fec_parms *code, unsigned char *src,
+ unsigned char *fec, int index, int sz);
/* data - array of (k) pointers to data packets, in arbitrary order (see i)
* i - indices of (data) packets