summaryrefslogtreecommitdiffstats
path: root/pb.h
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-04-05 11:11:05 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-04-05 11:11:05 +0300
commite5b855fec5d2977971f96d817728c7a3ee8077b2 (patch)
tree33dbf33ea17c072d4db878ee043d2244f2ab638c /pb.h
parent70dee34da6578ab76dbf00009357d679e154e04b (diff)
Add a 'found' field to pb_extension_t.
Update issue 112 Status: FixedInGit
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pb.h b/pb.h
index 6f843854..63d313dc 100644
--- a/pb.h
+++ b/pb.h
@@ -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