From 7c3a09001774b9e0790ee7f31b29900cdebbf693 Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Sun, 11 Jun 2023 20:34:28 +0200 Subject: Introduce communication proto and add basic demultiplexer --- decode.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'decode.h') diff --git a/decode.h b/decode.h index 730e926..e2ea3ba 100644 --- a/decode.h +++ b/decode.h @@ -22,17 +22,11 @@ #include struct DecodeContext; -struct Frame; struct Window; -struct DecodeStats { - size_t bitrate; -}; - struct DecodeContext* DecodeContextCreate(struct Window* window); -bool DecodeContextDecode(struct DecodeContext* decode_context, int fd); -void DecodeContextGetStats(struct DecodeContext* decode_context, - struct DecodeStats* decode_stats); +bool DecodeContextDecode(struct DecodeContext* decode_context, + const void* buffer, size_t size); void DecodeContextDestroy(struct DecodeContext* decode_context); #endif // RECEIVER_DECODE_H_ -- cgit v1.2.3