Add a 'found' field to pb_extension_t.

Update issue 112
Status: FixedInGit
This commit is contained in:
Petteri Aimonen
2014-04-05 11:11:05 +03:00
parent 70dee34da6
commit e5b855fec5
4 changed files with 8 additions and 2 deletions

4
pb.h
View File

@@ -341,6 +341,10 @@ struct _pb_extension_t {
* If this extension does not match a field, the next handler is
* automatically called. */
pb_extension_t *next;
/* The decoder sets this to true if the extension was found.
* Ignored for encoding. */
bool found;
};
/* Memory allocation functions to use. You can define pb_realloc and