diff options
author | Monty <xiphmont@xiph.org> | 2007-02-08 22:22:43 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2007-02-08 22:22:43 +0000 |
commit | 440e37e72223ca32d5ac50d81aa0075825901e51 (patch) | |
tree | 5308fa088c3a7891ff3cdde377928c2cc86086d6 /include | |
parent | 9fd0e63b471ecdde966eea995d3eb9fc27035089 (diff) | |
download | ogg-git-440e37e72223ca32d5ac50d81aa0075825901e51.tar.gz |
Add Andrew Donkin's iovec patch to libogg 1. Applied as-is after
review.
svn path=/trunk/ogg/; revision=12446
Diffstat (limited to 'include')
-rw-r--r-- | include/ogg/ogg.h | 11 |
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); |