Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add a convenience function pb_get_encoded_size()
[apps/agl-service-can-low-level.git]
/
pb.h
diff --git
a/pb.h
b/pb.h
index
6f84385
..
63d313d
100644
(file)
--- 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;
* 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
};
/* Memory allocation functions to use. You can define pb_realloc and