summaryrefslogtreecommitdiffstats
path: root/tests/backwards_compatibility/SConscript
blob: 777ef402e321efe579608bf0af02355ff11da76f (plain)
1
2
3
4
5
6
7
8
9
10
11
# Check that the old generated .pb.c/.pb.h files are still compatible with the
# current version of nanopb.

Import("env")

enc = env.Program(["encode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_encode.o"])
dec = env.Program(["decode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_decode.o"])

env.RunTest(enc)
env.RunTest([dec, "encode_legacy.output"])
count/has field */ }; typedef struct pb_field_iter_s pb_field_iter_t; /* Initialize the field iterator structure to beginning. * Returns false if the message type is empty. */ bool pb_field_iter_begin(pb_field_iter_t *iter, const pb_field_t *fields, void *dest_struct); /* Advance the iterator to the next field. * Returns false when the iterator wraps back to the first field. */ bool pb_field_iter_next(pb_field_iter_t *iter); /* Advance the iterator until it points at a field with the given tag. * Returns false if no such field exists. */ bool pb_field_iter_find(pb_field_iter_t *iter, uint32_t tag); #ifdef __cplusplus } /* extern "C" */ #endif #endif