summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2007-02-08 22:22:43 +0000
committerMonty <xiphmont@xiph.org>2007-02-08 22:22:43 +0000
commit78bc557c6d2c10f0e8052e84f1cea19b2ea9dc3f (patch)
tree5308fa088c3a7891ff3cdde377928c2cc86086d6 /include
parentfda49632f9b68ee97c5309b3de0f1f73aed60c1f (diff)
downloadogg-78bc557c6d2c10f0e8052e84f1cea19b2ea9dc3f.tar.gz
Add Andrew Donkin's iovec patch to libogg 1. Applied as-is after
review. git-svn-id: http://svn.xiph.org/trunk/ogg@12446 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'include')
-rw-r--r--include/ogg/ogg.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/ogg/ogg.h b/include/ogg/ogg.h
index e8bb9bf..b17113a 100644
--- a/include/ogg/ogg.h
+++ b/include/ogg/ogg.h
@@ -5,13 +5,13 @@
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
- * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
+ * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 *
* by the Xiph.Org Foundation http://www.xiph.org/ *
* *
********************************************************************
function: toplevel libogg include
- last mod: $Id: ogg.h,v 1.19 2002/09/15 23:48:02 xiphmont Exp $
+ last mod: $Id$
********************************************************************/
#ifndef _OGG_H
@@ -24,6 +24,11 @@ extern "C" {
#include <ogg/os_types.h>
typedef struct {
+ void *iov_base;
+ size_t iov_len;
+} ogg_iovec_t;
+
+typedef struct {
long endbyte;
int endbit;
@@ -148,6 +153,8 @@ extern unsigned char *oggpackB_get_buffer(oggpack_buffer *b);
/* Ogg BITSTREAM PRIMITIVES: encoding **************************/
extern int ogg_stream_packetin(ogg_stream_state *os, ogg_packet *op);
+extern int ogg_stream_iovecin(ogg_stream_state *os, ogg_iovec_t *iov,
+ int count, long e_o_s, ogg_int64_t granulepos);
extern int ogg_stream_pageout(ogg_stream_state *os, ogg_page *og);
extern int ogg_stream_flush(ogg_stream_state *os, ogg_page *og);