summaryrefslogtreecommitdiff
path: root/core/upb_def.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-07-18 22:45:15 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-07-18 22:45:15 -0700
commit5871ed0d02ff69b20b65f577dd3be18a2e92dec7 (patch)
tree72f3d51fdf0a42e9cf3b5303b8fee7833fce2a1c /core/upb_def.h
parent4b6c8b6b2317436ab77b38e17b49a7c7b03bf3f4 (diff)
First go at Lua bindings.
Diffstat (limited to 'core/upb_def.h')
-rw-r--r--core/upb_def.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/upb_def.h b/core/upb_def.h
index 9cdc54d..ae9e0fa 100644
--- a/core/upb_def.h
+++ b/core/upb_def.h
@@ -48,15 +48,15 @@ typedef enum {
// For specifying that defs of any type are requsted from getdefs.
UPB_DEF_ANY = -1
-} upb_def_type;
+} upb_deftype;
// This typedef is more space-efficient than declaring an enum var directly.
-typedef int8_t upb_def_type_t;
+typedef int8_t upb_deftype_t;
typedef struct {
upb_string *fqname; // Fully qualified.
upb_atomic_refcount_t refcount;
- upb_def_type_t type;
+ upb_deftype_t type;
// The is_cyclic flag could go in upb_msgdef instead of here, because only
// messages can be involved in cycles. However, putting them here is free
@@ -265,7 +265,7 @@ upb_def *upb_symtab_lookup(upb_symtab *s, upb_string *sym);
// caller owns the returned array (which is of length *count) as well as a ref
// to each symbol inside. If type is UPB_DEF_ANY then defs of all types are
// returned, otherwise only defs of the required type are returned.
-upb_def **upb_symtab_getdefs(upb_symtab *s, int *count, upb_def_type_t type);
+upb_def **upb_symtab_getdefs(upb_symtab *s, int *count, upb_deftype_t type);
// "fds" is a upb_src that will yield data from the
// google.protobuf.FileDescriptorSet message type. upb_symtab_addfds() adds
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback