Home | History | Annotate | Download | only in protobuf_c

Lines Matching refs:subdef

1937    * When a fielddef is duplicated, the subdef (if any) is made symbolic if it
1938 * wasn't already. If the subdef is set but has no name (which is possible
1939 * since msgdefs are not required to have a name) the new fielddef's subdef
2082 /* Submessage and enum fields must reference a "subdef", which is the
2084 * the FieldDef is mutable it may not have a subdef *yet*, but this function
2085 * still returns true to indicate that the field's type requires a subdef. */
2090 * type() == UPB_TYPE_ENUM). Returns NULL if the subdef has not been set or
2095 /* Returns the generic subdef for this field. Requires that HasSubDef() (ie.
2097 const Def* subdef() const;
2099 /* Returns the symbolic name of the subdef. If the subdef is currently set
2101 * been resolved to a specific subdef, returns the name from that subdef. */
2172 /* Before a fielddef is frozen, its subdef may be set either directly (with a
2179 * the given subdef is not of the correct type. The subdef is reset if the
2180 * field's type is changed. The subdef can be set to NULL to clear it. */
2181 bool set_subdef(const Def* subdef, Status* s);
2182 bool set_enum_subdef(const EnumDef* subdef, Status* s);
2183 bool set_message_subdef(const MessageDef* subdef, Status* s);
2271 bool upb_fielddef_setsubdef(upb_fielddef *f, const upb_def *subdef,
2273 bool upb_fielddef_setmsgsubdef(upb_fielddef *f, const upb_msgdef *subdef,
2275 bool upb_fielddef_setenumsubdef(upb_fielddef *f, const upb_enumdef *subdef,
3257 inline const Def* FieldDef::subdef() const { return upb_fielddef_subdef(this); }
3267 inline bool FieldDef::set_subdef(const Def* subdef, Status* s) {
3268 return upb_fielddef_setsubdef(this, subdef, s);
3270 inline bool FieldDef::set_enum_subdef(const EnumDef* subdef, Status* s) {
3271 return upb_fielddef_setenumsubdef(this, subdef, s);
3273 inline bool FieldDef::set_message_subdef(const MessageDef* subdef, Status* s) {
3274 return upb_fielddef_setmsgsubdef(this, subdef, s);
3762 packed, name, num, msgdef, subdef, selector_base, \
3766 defaultval, {msgdef}, {subdef}, NULL, false, false, \