[master] Added const_png_structp and const_png_infop types, and used them in

prototypes for most png_get_*() functions.
In the manual, describe the png_get_IHDR() arguments in the correct order.
This commit is contained in:
Glenn Randers-Pehrson
2011-01-21 11:09:07 -06:00
parent 23c2ea38a6
commit 379d0160ea
14 changed files with 300 additions and 277 deletions

View File

@@ -1,8 +1,8 @@
/* pngpread.c - read a png file in push mode
*
* Last changed in libpng 1.4.3 [June 26, 2010]
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* Last changed in libpng 1.4.6 [January 21, 2011]
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
*
@@ -1757,7 +1757,7 @@ png_set_progressive_read_fn(png_structp png_ptr, png_voidp progressive_ptr,
}
png_voidp PNGAPI
png_get_progressive_ptr(png_structp png_ptr)
png_get_progressive_ptr(const_png_structp png_ptr)
{
if (png_ptr == NULL)
return (NULL);