exif-ifd.c

Go to the documentation of this file.
00001 /* exif-ifd.c
00002  *
00003  * Copyright © 2002 Lutz Müller <lutz@users.sourceforge.net>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful, 
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details. 
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the
00017  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #include <config.h>
00022 
00023 #include <libexif/exif-ifd.h>
00024 
00025 #include <stdlib.h>
00026 
00027 static struct {
00028         ExifIfd ifd;
00029         const char *name;
00030 } ExifIfdTable[] = {
00031         {EXIF_IFD_0, "0"},
00032         {EXIF_IFD_1, "1"},
00033         {EXIF_IFD_EXIF, "EXIF"},
00034         {EXIF_IFD_GPS, "GPS"},
00035         {EXIF_IFD_INTEROPERABILITY, "Interoperability"},
00036         {0, NULL}
00037 };
00038 
00039 const char *
00040 exif_ifd_get_name (ExifIfd ifd)
00041 {
00042         unsigned int i;
00043 
00044         for (i = 0; ExifIfdTable[i].name; i++)
00045                 if (ExifIfdTable[i].ifd == ifd)
00046                         break;
00047 
00048         return (ExifIfdTable[i].name);
00049 }

Generated on Tue Dec 19 14:33:53 2006 for EXIF library (libexif) Internals by  doxygen 1.5.1