mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-02-01 23:30:54 +03:00
add nanopb (manual)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/* This module implements a custom input stream that can be set to give IO error
|
||||
* at specific point. */
|
||||
|
||||
#ifndef FLAKYSTREAM_H
|
||||
#define FLAKYSTREAM_H
|
||||
|
||||
#include <pb_decode.h>
|
||||
|
||||
typedef struct {
|
||||
pb_istream_t stream;
|
||||
const uint8_t *buffer;
|
||||
size_t position;
|
||||
size_t msglen;
|
||||
size_t fail_after;
|
||||
} flakystream_t;
|
||||
|
||||
void flakystream_init(flakystream_t *stream, const uint8_t *buffer, size_t msglen, size_t fail_after);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user