summaryrefslogtreecommitdiff
path: root/upb_context.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-05 17:54:49 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-05 17:54:49 -0700
commit7f871401c77bcda18e8f41e457ee55388773d183 (patch)
tree2996509ed66b4056789a09fb7b81c418e7a3af57 /upb_context.h
parent421f276086dfc4d1df7411820f9d56f3ae78472e (diff)
More work on upbc.
Diffstat (limited to 'upb_context.h')
-rw-r--r--upb_context.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/upb_context.h b/upb_context.h
index 8229ae4..51afed1 100644
--- a/upb_context.h
+++ b/upb_context.h
@@ -31,12 +31,12 @@ struct upb_symtab_entry {
struct upb_context {
struct upb_strtable symtab; /* The context's symbol table. */
struct upb_strtable psymtab; /* Private symbols, for internal use. */
- struct upb_msg *fd_msg; /* This is in psymtab, ptr here for convenience. */
+ struct upb_msg *fds_msg; /* This is in psymtab, ptr here for convenience. */
/* A list of the FileDescriptorProtos we own (from having parsed them
* ourselves) and must free on destruction. */
- size_t fd_size, fd_len;
- struct google_protobuf_FileDescriptorProto **fd;
+ size_t fds_size, fds_len;
+ struct google_protobuf_FileDescriptorSet **fds;
};
/* Initializes and frees a upb_context, respectively. Newly initialized
@@ -93,9 +93,7 @@ INLINE struct upb_symtab_entry *upb_context_symnext(
bool upb_context_addfd(struct upb_context *c,
struct google_protobuf_FileDescriptorProto *fd);
-/* Like the previous, but takes a serialized FileDescriptorProto and parses
- * it before adding to the context. */
-bool upb_context_parsefd(struct upb_context *c, struct upb_string *fd);
+bool upb_context_parsefds(struct upb_context *c, struct upb_string *fds);
#ifdef __cplusplus
} /* extern "C" */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback