summaryrefslogtreecommitdiff
path: root/upb_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'upb_context.h')
-rw-r--r--upb_context.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/upb_context.h b/upb_context.h
index d96ee39..8229ae4 100644
--- a/upb_context.h
+++ b/upb_context.h
@@ -16,6 +16,8 @@
#include "upb.h"
#include "upb_table.h"
+struct google_protobuf_FileDescriptorProto;
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -34,7 +36,7 @@ struct upb_context {
/* A list of the FileDescriptorProtos we own (from having parsed them
* ourselves) and must free on destruction. */
size_t fd_size, fd_len;
- google_protobuf_FileDescriptorProto **fd;
+ struct google_protobuf_FileDescriptorProto **fd;
};
/* Initializes and frees a upb_context, respectively. Newly initialized
@@ -89,7 +91,7 @@ INLINE struct upb_symtab_entry *upb_context_symnext(
* about what happened in the case of failure. This is because the descriptor
* is expected to have been validated at the time it was parsed/generated. */
bool upb_context_addfd(struct upb_context *c,
- google_protobuf_FileDescriptorProto *fd);
+ struct google_protobuf_FileDescriptorProto *fd);
/* Like the previous, but takes a serialized FileDescriptorProto and parses
* it before adding to the context. */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback