summaryrefslogtreecommitdiff
path: root/core/upb_def.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-07-17 19:00:40 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-07-17 19:00:40 -0700
commit4b6c8b6b2317436ab77b38e17b49a7c7b03bf3f4 (patch)
tree78d29aa3e9a1409c9487d9ebf9b0e52d36b03d60 /core/upb_def.h
parent0fcfeab521b01160875e863575dd5b63952b1593 (diff)
Fixed bugs in textoutput.
Text output from descriptor.proto is now identical to protoc!
Diffstat (limited to 'core/upb_def.h')
-rw-r--r--core/upb_def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/upb_def.h b/core/upb_def.h
index 82d8520..9cdc54d 100644
--- a/core/upb_def.h
+++ b/core/upb_def.h
@@ -202,6 +202,7 @@ typedef int32_t upb_enumval_t;
// Lookups from name to integer and vice-versa.
bool upb_enumdef_ntoi(upb_enumdef *e, upb_string *name, upb_enumval_t *num);
+// Caller does not own a ref on the returned string.
upb_string *upb_enumdef_iton(upb_enumdef *e, upb_enumval_t num);
// Iteration over name/value pairs. The order is undefined.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback