summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2009-05-19 23:27:38 +0000
committerMonty <xiphmont@xiph.org>2009-05-19 23:27:38 +0000
commit76f4809e46bd2af58b6efd7cc0ccb616d45b176a (patch)
treefb4a077fac9b41ecd266b9d2aac9be87401d23eb /include
parent33f306ac4698491970732dc4ddf539df54d55ab8 (diff)
downloadogg-git-76f4809e46bd2af58b6efd7cc0ccb616d45b176a.tar.gz
Update configure script to use new 'legal' names for cache vals (I hate you so much, autofoo)
Update ogg to check the return of all allocs for those on embedded platforms with guarantees non-ovecommit. Be aware that these checks are useless on any modern desktop OS, but that embedded folks with no MMU and a hard heap boundary will benefit. Add one new call to bitpacker that will query a write-mode oggpack_buffer to see if it ran out of memory at some point; there was no other way to add the error reporting in an ABI-compatible manner (and it also allows the writepacker to avoid extra checks; it will just keep going after running out of memory without faulting and state can be queried later). svn path=/trunk/ogg/; revision=16016
Diffstat (limited to 'include')
-rw-r--r--include/ogg/ogg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ogg/ogg.h b/include/ogg/ogg.h
index 33ae3da..9ff2c95 100644
--- a/include/ogg/ogg.h
+++ b/include/ogg/ogg.h
@@ -116,6 +116,7 @@ typedef struct {
/* Ogg BITSTREAM PRIMITIVES: bitstream ************************/
extern void oggpack_writeinit(oggpack_buffer *b);
+extern int oggpack_writecheck(oggpack_buffer *b);
extern void oggpack_writetrunc(oggpack_buffer *b,long bits);
extern void oggpack_writealign(oggpack_buffer *b);
extern void oggpack_writecopy(oggpack_buffer *b,void *source,long bits);
@@ -134,6 +135,7 @@ extern long oggpack_bits(oggpack_buffer *b);
extern unsigned char *oggpack_get_buffer(oggpack_buffer *b);
extern void oggpackB_writeinit(oggpack_buffer *b);
+extern int oggpackB_writecheck(oggpack_buffer *b);
extern void oggpackB_writetrunc(oggpack_buffer *b,long bits);
extern void oggpackB_writealign(oggpack_buffer *b);
extern void oggpackB_writecopy(oggpack_buffer *b,void *source,long bits);