summaryrefslogtreecommitdiff
path: root/src/upb_def.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-05-19 10:56:34 -0700
committerJoshua Haberman <joshua@reverberate.org>2011-05-19 10:56:34 -0700
commitd619852e06983dc30d2070f6c4af32d563b101f2 (patch)
treeaad6f6c1e2221ec2f0703fab2a842022156fa520 /src/upb_def.h
parenta5506318aa6f815f8c9439de99247463ad8883e0 (diff)
Change dispatcher error handling model.
Now the dispatcher will call error handlers instaed of returning statuses that the caller has to constantly check.
Diffstat (limited to 'src/upb_def.h')
-rw-r--r--src/upb_def.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/upb_def.h b/src/upb_def.h
index d02fbf4..c2509ec 100644
--- a/src/upb_def.h
+++ b/src/upb_def.h
@@ -175,8 +175,8 @@ typedef struct _upb_msgdef {
// Hash table entries for looking up fields by name or number.
typedef struct {
bool junk;
- upb_fieldtype_t field_type;
- upb_wire_type_t native_wire_type;
+ uint8_t field_type;
+ uint8_t native_wire_type;
upb_fielddef *f;
} upb_itof_ent;
typedef struct {
@@ -209,7 +209,7 @@ INLINE upb_fielddef *upb_msgdef_ntof(upb_msgdef *m, upb_string *name) {
return e ? e->f : NULL;
}
-INLINE upb_field_count_t upb_msgdef_numfields(upb_msgdef *m) {
+INLINE int upb_msgdef_numfields(upb_msgdef *m) {
return upb_strtable_count(&m->ntof);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback