Rename read_length to read_uint16, and add a read_uint8.
[fjl] / input.h
diff --git a/input.h b/input.h
index be60c5ac87db55f5591ddb2c0fd02fd11df9a3bf..b57c814dfcefd0c8d1c68045fc7cc1a7513ea333 100644 (file)
--- a/input.h
+++ b/input.h
@@ -14,6 +14,8 @@ typedef ssize_t (input_func_t)(void*, uint8_t*, size_t);
 typedef ssize_t (raw_input_func_t)(void*, uint8_t*, size_t);
 
 void reliable_read(raw_input_func_t* input_func, void* userdata, uint8_t* buf, size_t len);
-uint16_t read_length(raw_input_func_t* input_func, void* userdata);
+
+uint8_t read_uint8(raw_input_func_t* input_func, void* userdata);
+uint16_t read_uint16(raw_input_func_t* input_func, void* userdata);
 
 #endif /* !defined(_INPUT_H) */