1*a67afe4dSAndroid Build Coastguard Worker 2*a67afe4dSAndroid Build Coastguard Worker /* symbols.c - find all exported symbols 3*a67afe4dSAndroid Build Coastguard Worker * 4*a67afe4dSAndroid Build Coastguard Worker * Copyright (c) 2011-2014 Glenn Randers-Pehrson 5*a67afe4dSAndroid Build Coastguard Worker * 6*a67afe4dSAndroid Build Coastguard Worker * This code is released under the libpng license. 7*a67afe4dSAndroid Build Coastguard Worker * For conditions of distribution and use, see the disclaimer 8*a67afe4dSAndroid Build Coastguard Worker * and license in png.h 9*a67afe4dSAndroid Build Coastguard Worker */ 10*a67afe4dSAndroid Build Coastguard Worker 11*a67afe4dSAndroid Build Coastguard Worker /* NOTE: making 'symbols.chk' checks both that the exported 12*a67afe4dSAndroid Build Coastguard Worker * symbols in the library don't change and (implicitly) that 13*a67afe4dSAndroid Build Coastguard Worker * scripts/pnglibconf.h.prebuilt is as expected. 14*a67afe4dSAndroid Build Coastguard Worker * If scripts/pnglibconf.h.prebuilt is remade using 15*a67afe4dSAndroid Build Coastguard Worker * scripts/pnglibconf.dfa then this checks the .dfa file too. 16*a67afe4dSAndroid Build Coastguard Worker */ 17*a67afe4dSAndroid Build Coastguard Worker 18*a67afe4dSAndroid Build Coastguard Worker #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 19*a67afe4dSAndroid Build Coastguard Worker PNG_DFN "@" name "@ @@" ordinal "@" 20*a67afe4dSAndroid Build Coastguard Worker #define PNG_REMOVED(ordinal, type, name, args, attributes)\ 21*a67afe4dSAndroid Build Coastguard Worker PNG_DFN "; @" name "@ @@" ordinal "@" 22*a67afe4dSAndroid Build Coastguard Worker #define PNG_EXPORT_LAST_ORDINAL(ordinal)\ 23*a67afe4dSAndroid Build Coastguard Worker PNG_DFN "; @@" ordinal "@" 24*a67afe4dSAndroid Build Coastguard Worker 25*a67afe4dSAndroid Build Coastguard Worker /* Read the defaults, but use scripts/pnglibconf.h.prebuilt; the 'standard' 26*a67afe4dSAndroid Build Coastguard Worker * header file. 27*a67afe4dSAndroid Build Coastguard Worker */ 28*a67afe4dSAndroid Build Coastguard Worker #include "pnglibconf.h.prebuilt" 29*a67afe4dSAndroid Build Coastguard Worker #include "../png.h" 30*a67afe4dSAndroid Build Coastguard Worker 31*a67afe4dSAndroid Build Coastguard Worker /* Some things are turned off by default. Turn these things 32*a67afe4dSAndroid Build Coastguard Worker * on here (by hand) to get the APIs they expose and validate 33*a67afe4dSAndroid Build Coastguard Worker * that no harm is done. This list is the set of options 34*a67afe4dSAndroid Build Coastguard Worker * defaulted to 'off' in scripts/pnglibconf.dfa 35*a67afe4dSAndroid Build Coastguard Worker * 36*a67afe4dSAndroid Build Coastguard Worker * Maintenance: if scripts/pnglibconf.dfa options are changed 37*a67afe4dSAndroid Build Coastguard Worker * from, or to, 'disabled' this needs updating! 38*a67afe4dSAndroid Build Coastguard Worker */ 39*a67afe4dSAndroid Build Coastguard Worker #define PNG_BENIGN_ERRORS_SUPPORTED 40*a67afe4dSAndroid Build Coastguard Worker #define PNG_ERROR_NUMBERS_SUPPORTED 41*a67afe4dSAndroid Build Coastguard Worker #define PNG_READ_BIG_ENDIAN_SUPPORTED /* should do nothing! */ 42*a67afe4dSAndroid Build Coastguard Worker #define PNG_INCH_CONVERSIONS_SUPPORTED 43*a67afe4dSAndroid Build Coastguard Worker #define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED 44*a67afe4dSAndroid Build Coastguard Worker #define PNG_SET_OPTION_SUPPORTED 45*a67afe4dSAndroid Build Coastguard Worker 46*a67afe4dSAndroid Build Coastguard Worker #undef PNG_H 47*a67afe4dSAndroid Build Coastguard Worker #include "../png.h" 48*a67afe4dSAndroid Build Coastguard Worker 49*a67afe4dSAndroid Build Coastguard Worker /* Finally there are a couple of places where option support 50*a67afe4dSAndroid Build Coastguard Worker * actually changes the APIs revealed using a #if/#else/#endif 51*a67afe4dSAndroid Build Coastguard Worker * test in png.h, test these here. 52*a67afe4dSAndroid Build Coastguard Worker */ 53*a67afe4dSAndroid Build Coastguard Worker #undef PNG_FLOATING_POINT_SUPPORTED /* Exposes 'fixed' APIs */ 54*a67afe4dSAndroid Build Coastguard Worker #undef PNG_ERROR_TEXT_SUPPORTED /* Exposes unsupported APIs */ 55*a67afe4dSAndroid Build Coastguard Worker 56*a67afe4dSAndroid Build Coastguard Worker #undef PNG_H 57*a67afe4dSAndroid Build Coastguard Worker #include "../png.h" 58