]> git.sesse.net Git - fjl/blobdiff - bitsource.h
Handle EOI marker.
[fjl] / bitsource.h
index ae29b4c4a2200abce210242a541be2c289ea8163..60744b32e12bdc7809f8b0d7cf47d3271a8b8295 100644 (file)
@@ -2,6 +2,7 @@
 #define _BITSOURCE_H 1
 
 #include <assert.h>
+#include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <sys/types.h>
@@ -45,6 +46,7 @@ struct bit_source {
        // Data source.
        input_func_t* input_func;
        void* userdata;
+       bool source_eof;
 };
 
 void init_bit_source(struct bit_source* source, input_func_t* input_func,