00001 /* exif-byte-order.c 00002 * 00003 * Copyright (c) 2002 Lutz Mueller <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 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., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301 USA. 00019 */ 00020 00021 #include <config.h> 00022 00023 #include <libexif/exif-byte-order.h> 00024 #include <libexif/i18n.h> 00025 00026 #include <stdlib.h> 00027 00028 const char * 00029 exif_byte_order_get_name (ExifByteOrder order) 00030 { 00031 switch (order) { 00032 case EXIF_BYTE_ORDER_MOTOROLA: 00033 return (_("Motorola")); 00034 case EXIF_BYTE_ORDER_INTEL: 00035 return (_("Intel")); 00036 default: 00037 return NULL; 00038 } 00039 }