X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=pb.h;h=442d965805b0df5eb59701179b037ce0443ee64b;hb=58643217b1fa3eaf05768fabffac709cc8f277e8;hp=b8a957ae2ff9970f5cda88db00156888dd3112ae;hpb=cfc517f36b3263bb583751f4cee0e58eeff98c5f;p=apps%2Fagl-service-can-low-level.git diff --git a/pb.h b/pb.h index b8a957ae..442d9658 100644 --- a/pb.h +++ b/pb.h @@ -456,9 +456,11 @@ struct pb_extension_s { 0, \ pb_membersize(st, m), 0, ptr} +#define PB_OPTEXT_POINTER(tag, st, m, fd, ltype, ptr) \ + PB_OPTIONAL_POINTER(tag, st, m, fd, ltype, ptr) + #define PB_OPTEXT_CALLBACK(tag, st, m, fd, ltype, ptr) \ - {tag, PB_ATYPE_CALLBACK | PB_HTYPE_OPTIONAL | ltype, \ - 0, 0, pb_membersize(st, m), 0, ptr} + PB_OPTIONAL_CALLBACK(tag, st, m, fd, ltype, ptr) /* The mapping from protobuf types to LTYPEs is done using these macros. */ #define PB_LTYPE_MAP_BOOL PB_LTYPE_VARINT