diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-08-24 21:22:20 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-08-24 21:22:20 +0300 |
commit | 0fb5e5e068326b23493952619d7efb640cb37377 (patch) | |
tree | 3f3bbb7e05c6c17984b13ab87104c235a61f22fd /pb_decode.h | |
parent | ea57f74741b5b5ab3ab4a3e81d8b61811417b4c6 (diff) |
Implement error messages in the decoder side.
Update issue 7
Status: Started
Diffstat (limited to 'pb_decode.h')
-rw-r--r-- | pb_decode.h | 4 |
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); |