Subversion Repositories freemyipod

Rev

Rev 504 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
494 theseven 1
//
2
//
3
//    Copyright 2011 TheSeven
4
//
5
//
6
//    This file is part of emCORE.
7
//
8
//    emCORE is free software: you can redistribute it and/or
9
//    modify it under the terms of the GNU General Public License as
10
//    published by the Free Software Foundation, either version 2 of the
11
//    License, or (at your option) any later version.
12
//
13
//    emCORE is distributed in the hope that it will be useful,
14
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
//    See the GNU General Public License for more details.
17
//
18
//    You should have received a copy of the GNU General Public License along
19
//    with emCORE.  If not, see <http://www.gnu.org/licenses/>.
20
//
21
//
22
 
23
 
504 theseven 24
#ifndef __EXPORT_LIBPNG_H__
25
#define __EXPORT_LIBPNG_H__
494 theseven 26
 
27
 
28
#include "emcorelib.h"
29
 
30
 
31
#include "../png.h"
32
 
33
 
651 theseven 34
/* emCORE library identifier */
35
#define LIBPNG_IDENTIFIER 0x64474e50
36
 
494 theseven 37
/* increase this every time the api struct changes */
38
#define LIBPNG_API_VERSION 1
39
 
40
/* update this to latest version if a change to the api struct breaks
41
   backwards compatibility (and please take the opportunity to sort in any
42
   new function which are "waiting" at the end of the function table) */
43
#define LIBPNG_MIN_API_VERSION 1
44
 
45
/* NOTE: To support backwards compatibility, only add new functions at
46
         the end of the structure.  Every time you add a new function,
47
         remember to increase LIBPNG_API_VERSION. If you make changes to the
48
         existing APIs, also update LIBPNG_MIN_API_VERSION to current version */
49
 
50
struct libpng_api
51
{
52
    typeof(png_open)* png_open;
53
    typeof(png_get_width)* png_get_width;
54
    typeof(png_get_height)* png_get_height;
55
    typeof(png_set_background)* png_set_background;
56
    typeof(png_decode_rgba)* png_decode_rgba;
57
    typeof(png_decode_rgb)* png_decode_rgb;
58
    typeof(png_destroy)* png_destroy;
59
};
60
 
61
 
62
#endif