summaryrefslogtreecommitdiffstats
path: root/pb_decode.h
diff options
context:
space:
mode:
Diffstat (limited to 'pb_decode.h')
-rw-r--r--pb_decode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pb_decode.h b/pb_decode.h
index 2880c070..ad45efbf 100644
--- a/pb_decode.h
+++ b/pb_decode.h
@@ -33,6 +33,10 @@ struct _pb_istream_t
bool (*callback)(pb_istream_t *stream, uint8_t *buf, size_t count);
void *state; /* Free field for use by callback implementation */
size_t bytes_left;
+
+#ifndef PB_NO_ERRMSG
+ const char *errmsg;
+#endif
};
pb_istream_t pb_istream_from_buffer(uint8_t *buf, size_t bufsize);