summaryrefslogtreecommitdiff
path: root/src/upb_msg.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-11-14 15:49:21 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-11-14 15:49:21 -0800
commit7cde43ea0abf2022a0c800c7af1d5f1ec2033bea (patch)
tree22961315d9b00831a0384e9f1fc0f88b8b76aa6e /src/upb_msg.h
parente252432a4176b6524e8c064673459e947ba11cb7 (diff)
Renamed upb_msg_fielddef -> upb_fielddef, upb_enum -> upb_enumdef.
Diffstat (limited to 'src/upb_msg.h')
-rw-r--r--src/upb_msg.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/upb_msg.h b/src/upb_msg.h
index 552e2dc..4ca1e2a 100644
--- a/src/upb_msg.h
+++ b/src/upb_msg.h
@@ -70,7 +70,7 @@ INLINE struct upb_msg *upb_msg_new(struct upb_msgdef *md) {
/* Returns a pointer to a specific field in a message. */
INLINE union upb_value_ptr upb_msg_getptr(struct upb_msg *msg,
- struct upb_msg_fielddef *f) {
+ struct upb_fielddef *f) {
union upb_value_ptr p;
p._void = &msg->data[f->byte_offset];
return p;
@@ -95,19 +95,19 @@ INLINE uint8_t upb_isset_mask(uint32_t field_index) {
}
/* Returns true if the given field is set, false otherwise. */
-INLINE void upb_msg_set(struct upb_msg *msg, struct upb_msg_fielddef *f)
+INLINE void upb_msg_set(struct upb_msg *msg, struct upb_fielddef *f)
{
msg->data[upb_isset_offset(f->field_index)] |= upb_isset_mask(f->field_index);
}
/* Clears the set bit for this field in the given message. */
-INLINE void upb_msg_unset(struct upb_msg *msg, struct upb_msg_fielddef *f)
+INLINE void upb_msg_unset(struct upb_msg *msg, struct upb_fielddef *f)
{
msg->data[upb_isset_offset(f->field_index)] &= ~upb_isset_mask(f->field_index);
}
/* Tests whether the given field is set. */
-INLINE bool upb_msg_isset(struct upb_msg *msg, struct upb_msg_fielddef *f)
+INLINE bool upb_msg_isset(struct upb_msg *msg, struct upb_fielddef *f)
{
return msg->data[upb_isset_offset(f->field_index)] & upb_isset_mask(f->field_index);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback