summaryrefslogtreecommitdiffstats
path: root/serial_link/protocol/byte_stuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'serial_link/protocol/byte_stuffer.h')
-rw-r--r--serial_link/protocol/byte_stuffer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/serial_link/protocol/byte_stuffer.h b/serial_link/protocol/byte_stuffer.h
index 3b9f9ea5d4..9a5551fab5 100644
--- a/serial_link/protocol/byte_stuffer.h
+++ b/serial_link/protocol/byte_stuffer.h
@@ -22,4 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
-void recv_byte(uint8_t data);
+typedef struct byte_stuffer_state byte_stuffer_state_t;
+void init_byte_stuffer_state(byte_stuffer_state_t* state);
+void recv_byte(byte_stuffer_state_t* state, uint8_t data);