summaryrefslogtreecommitdiff
path: root/src/upb_sink.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-01-15 19:11:54 -0800
committerJoshua Haberman <joshua@reverberate.org>2010-01-15 19:11:54 -0800
commitd5566c6038845e505f7c16130b2368ef9bb3a373 (patch)
treebf808b4ef5d0391a9d6ed3be9247d3e0f7ce5cef /src/upb_sink.h
parent9116c697f845e7ca215628029800c36f7dfbfaee (diff)
Remove struct keyword from all types, use typedef instead.
Diffstat (limited to 'src/upb_sink.h')
-rw-r--r--src/upb_sink.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/upb_sink.h b/src/upb_sink.h
index d864512..5d34000 100644
--- a/src/upb_sink.h
+++ b/src/upb_sink.h
@@ -34,12 +34,12 @@
#ifndef UPB_SINK_H
#define UPB_SINK_H
+#include "upb_def.h"
+
#ifdef __cplusplus
extern "C" {
#endif
-struct upb_fielddef;
-
// Each of the upb_sink callbacks returns a status of this type.
typedef enum {
// The normal case, where the consumer wants to continue consuming.
@@ -65,7 +65,7 @@ typedef struct {
// The value callback is called for a regular value (ie. not a string or
// submessage).
-typedef upb_sink_status (*upb_value_cb)(upb_sink *s, struct upb_fielddef *f,
+typedef upb_sink_status (*upb_value_cb)(upb_sink *s, upb_fielddef *f,
union upb_value val);
// The string callback is called for string data. "str" is the string in which
@@ -79,14 +79,14 @@ typedef upb_sink_status (*upb_value_cb)(upb_sink *s, struct upb_fielddef *f,
// The data is supplied this way to give you the opportunity to reference this
// data instead of copying it (perhaps using upb_strslice), or to minimize
// copying if it is unavoidable.
-typedef upb_sink_status (*upb_str_cb)(upb_sink *s, struct upb_fielddef *f,
+typedef upb_sink_status (*upb_str_cb)(upb_sink *s, upb_fielddef *f,
upb_strptr str,
int32_t start, uint32_t end);
// The start and end callbacks are called when a submessage begins and ends,
// respectively.
-typedef upb_sink_status (*upb_start_cb)(upb_sink *s, struct upb_fielddef *f);
-typedef upb_sink_status (*upb_end_cb)(upb_sink *s, struct upb_fielddef *f);
+typedef upb_sink_status (*upb_start_cb)(upb_sink *s, upb_fielddef *f);
+typedef upb_sink_status (*upb_end_cb)(upb_sink *s, upb_fielddef *f);
/* upb_sink implementation ****************************************************/
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback