From 78bc557c6d2c10f0e8052e84f1cea19b2ea9dc3f Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 8 Feb 2007 22:22:43 +0000 Subject: 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 --- include/ogg/ogg.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include') 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 @@ -23,6 +23,11 @@ extern "C" { #include +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); -- cgit v1.2.1