]> git.sesse.net Git - fjl/blobdiff - input.c
Rename data_source to bit_source, and add a little comment.
[fjl] / input.c
diff --git a/input.c b/input.c
index b7f703992cc3baafea9086cde2f6076e25c7ec9e..603eb6da31bf42e924a0ab83b713d38b7bc36602 100644 (file)
--- a/input.c
+++ b/input.c
@@ -4,7 +4,7 @@
 
 #include "input.h"
 
-void init_data_source(struct data_source* source, input_func_t* input_func, void* userdata)
+void init_bit_source(struct bit_source* source, input_func_t* input_func, void* userdata)
 {
        memset(source, 0, sizeof(*source));
        source->bytes = (uint8_t*)malloc(bytereservoir_size);
@@ -12,7 +12,7 @@ void init_data_source(struct data_source* source, input_func_t* input_func, void
        source->userdata = userdata;
 }
 
-void possibly_refill_slow_path(struct data_source* source, unsigned num_bits)
+void possibly_refill_slow_path(struct bit_source* source, unsigned num_bits)
 {
        // First, make sure there's stuff in the byte reservoir if we can.
        assert(source->bytes_available <= bytereservoir_size);