+
+/* Set to true if the stream is just one of several being read from a single
+ * pack and therefore would be extra expensive to read independently. */
+#define BEGIN_STREAM_FLAG_PARTIAL_RESOURCE 0x00000001
+
+/* This is purely advisory and indicates that the entire stream data will be
+ * provided in one call to consume_chunk(). */
+#define BEGIN_STREAM_FLAG_WHOLE_STREAM 0x00000002
+
+#define BEGIN_STREAM_STATUS_SKIP_STREAM -1
+
+/*
+ * Type of callback function for finishing reading a stream.
+ *
+ * @lte:
+ * Stream that has been fully read, or stream that started being read but
+ * could not be fully read due to a read error.
+ *
+ * @status:
+ * 0 if reading the stream was successful; otherwise a nonzero error code
+ * that specifies the return status.
+ *
+ * @ctx:
+ * User-provided context.
+ */