From cfdb9907cb87d15eaab72ceefbfa42fd7a4c3127 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Sat, 11 May 2013 16:45:38 -0700 Subject: Synced with 3 months of Google-internal development. Major changes: - Got rid of all bytestream interfaces in favor of using regular handlers. - new Pipeline object represents a upb pipeline, does bump allocation internally to manage memory. - proto2 support now can handle extensions. --- upb/bytestream.upb.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 upb/bytestream.upb.h (limited to 'upb/bytestream.upb.h') diff --git a/upb/bytestream.upb.h b/upb/bytestream.upb.h new file mode 100644 index 0000000..304c426 --- /dev/null +++ b/upb/bytestream.upb.h @@ -0,0 +1,37 @@ +// This file was generated by upbc (the upb compiler). +// Do not edit -- your changes will be discarded when the file is +// regenerated. + +#ifndef UPB_BYTESTREAM_UPB_H_ +#define UPB_BYTESTREAM_UPB_H_ + +#include "upb/def.h" + +#ifdef __cplusplus +extern "C" { +#endif + +// Enums + +// Do not refer to these forward declarations; use the constants +// below. +extern const upb_msgdef upb_bytestream_msgs[1]; +extern const upb_fielddef upb_bytestream_fields[1]; +extern const upb_enumdef upb_bytestream_enums[0]; + +// Constants for references to defs. +// We hide these behind macros to decouple users from the +// details of how we have statically defined them (ie. whether +// each def has its own symbol or lives in an array of defs). +#define UPB_BYTESTREAM &upb_bytestream_msgs[0] + +// Selector definitions. +#define UPB_BYTESTREAM_BYTES_ENDSTR 2 +#define UPB_BYTESTREAM_BYTES_STRING 0 +#define UPB_BYTESTREAM_BYTES_STARTSTR 1 + +#ifdef __cplusplus +}; // extern "C" +#endif + +#endif // UPB_BYTESTREAM_UPB_H_ -- cgit v1.2.3