summaryrefslogtreecommitdiff
path: root/upb/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2017-07-17 21:54:38 +0200
committerJoshua Haberman <jhaberman@gmail.com>2017-07-17 21:55:58 +0200
commitbe9094d91a2da777002a0f713306ac1bb74a6ac5 (patch)
tree431430e1e82092bbe95216a83e672761ab4d4613 /upb/upb.h
parent4da95f621330608f6dbd166cd376052c5deb6f02 (diff)
New encode/decode: most (171 / 192) conformance tests pass.
Diffstat (limited to 'upb/upb.h')
-rw-r--r--upb/upb.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/upb/upb.h b/upb/upb.h
index 19cd02c..2d6db8e 100644
--- a/upb/upb.h
+++ b/upb/upb.h
@@ -298,6 +298,16 @@ class PointerBase2 : public PointerBase<T, Base> {
#endif
+/* A list of types as they are encoded on-the-wire. */
+typedef enum {
+ UPB_WIRE_TYPE_VARINT = 0,
+ UPB_WIRE_TYPE_64BIT = 1,
+ UPB_WIRE_TYPE_DELIMITED = 2,
+ UPB_WIRE_TYPE_START_GROUP = 3,
+ UPB_WIRE_TYPE_END_GROUP = 4,
+ UPB_WIRE_TYPE_32BIT = 5
+} upb_wiretype_t;
+
/* upb::ErrorSpace ************************************************************/
@@ -626,7 +636,7 @@ void upb_env_uninit(upb_env *e);
void upb_env_initonly(upb_env *e);
-upb_arena *upb_env_arena(upb_env *e);
+UPB_INLINE upb_arena *upb_env_arena(upb_env *e) { return (upb_arena*)e; }
bool upb_env_ok(const upb_env *e);
void upb_env_seterrorfunc(upb_env *e, upb_error_func *func, void *ud);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback