diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-09-26 11:46:38 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-09-26 11:46:38 -0700 |
commit | 33a68acb14759cb6fcf796b41ad001c93de4b8e4 (patch) | |
tree | f03543b04c0e5b7ce7f2650ff1330919d4d6e055 /src/upb_context.h | |
parent | 4b47002198f2c0404e16d2f02786845d6d3a0d3b (diff) |
Use a status object for errors so a message can be returned.
Also delay deletion of subfields until the entire message is
deleted.
Diffstat (limited to 'src/upb_context.h')
-rw-r--r-- | src/upb_context.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/upb_context.h b/src/upb_context.h index 8e46cae..b223b40 100644 --- a/src/upb_context.h +++ b/src/upb_context.h @@ -102,13 +102,16 @@ void upb_context_enumerate(struct upb_context *c, upb_context_enumerator_t, * upb_context_addfd only returns true or false; it does not give any hint * 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_addfds(struct upb_context *c, - struct google_protobuf_FileDescriptorSet *fds); +void upb_context_addfds(struct upb_context *c, + struct google_protobuf_FileDescriptorSet *fds, + struct upb_status *status); -bool upb_context_addfds(struct upb_context *c, - struct google_protobuf_FileDescriptorSet *fds); +void upb_context_addfds(struct upb_context *c, + struct google_protobuf_FileDescriptorSet *fds, + struct upb_status *status); -bool upb_context_parsefds(struct upb_context *c, struct upb_string *fds); +void upb_context_parsefds(struct upb_context *c, struct upb_string *fds, + struct upb_status *status); #ifdef __cplusplus } /* extern "C" */ |