aboutsummaryrefslogtreecommitdiffstats
path: root/pb.h
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-02-20 21:58:18 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-02-20 21:58:18 +0200
commit69085d93877ef75ca28505487d8a1335a4b7fa6c (patch)
treea71591b367513ac64dc9b07efd6af8eb553c89b3 /pb.h
parent258ba8335dd2b54ee9ce934782239f357bca3581 (diff)
Rename PB_HTYPE_ARRAY -> PB_HTYPE_REPEATED.
This is a more logical name in parallel with PB_HTYPE_REQUIRED and PB_HTYPE_OPTIONAL. Warning: This breaks backwards-compatibility of generated .pb.c files. You will have to regenerate the files and recompile.
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pb.h b/pb.h
index 3d4323ae..cd3f465e 100644
--- a/pb.h
+++ b/pb.h
@@ -97,7 +97,7 @@ typedef uint8_t pb_type_t;
/* Read to pre-allocated array
* Maximum number of entries is array_size,
* actual number is stored at size_offset */
-#define PB_HTYPE_ARRAY 0x20
+#define PB_HTYPE_REPEATED 0x20
/* Works for all required/optional/repeated fields.
* data_offset points to pb_callback_t structure.
@@ -226,7 +226,7 @@ typedef enum {
/* Repeated fields have a _count field and also the maximum number of entries. */
#define PB_REPEATED_STATIC(tag, st, m, pm, ltype, ptr) \
- {tag, PB_HTYPE_ARRAY | ltype, \
+ {tag, PB_HTYPE_REPEATED | ltype, \
pb_delta_end(st, m, pm), \
pb_delta(st, m ## _count, m), \
pb_membersize(st, m[0]), \