summaryrefslogtreecommitdiffstats
path: root/pb_encode.c
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-07-17 20:21:51 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-07-17 20:21:51 +0300
commit64947cb382271e2ab17dbf40ab634846d7d30ad9 (patch)
treec8ca363f421f5103d625fca51f085cb93330dd15 /pb_encode.c
parent0343e2bcfe97748e8b1b93ecacb2e72fc0be7453 (diff)
Extension support implemented for decoder.
Testing is still needed. Also only 'optional' extension fields are supported now, 'repeated' fields are not yet supported.
Diffstat (limited to 'pb_encode.c')
-rw-r--r--pb_encode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pb_encode.c b/pb_encode.c
index f3c62a1..58d76a7 100644
--- a/pb_encode.c
+++ b/pb_encode.c
@@ -28,7 +28,8 @@ static const pb_encoder_t PB_ENCODERS[PB_LTYPES_COUNT] = {
&pb_enc_bytes,
&pb_enc_string,
- &pb_enc_submessage
+ &pb_enc_submessage,
+ NULL /* extensions */
};
/* pb_ostream_t implementation */