• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*! \file exif-byte-order.h
2  * \brief Defines the ExifByteOrder enum and the associated functions.
3  */
4 /*
5  * Copyright (c) 2002 Lutz Mueller <lutz@users.sourceforge.net>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA  02110-1301  USA.
21  */
22 
23 #ifndef LIBEXIF_EXIF_BYTE_ORDER_H
24 #define LIBEXIF_EXIF_BYTE_ORDER_H
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* __cplusplus */
29 
30 /*! Which byte order to use */
31 typedef enum {
32 	/*! Big-endian byte order */
33 	EXIF_BYTE_ORDER_MOTOROLA,
34 	/*! Little-endian byte order */
35 	EXIF_BYTE_ORDER_INTEL
36 } ExifByteOrder;
37 
38 /*! Return a short, localized, textual name for the given byte order.
39  * \param[in] order byte order
40  * \return localized textual name of the byte order, or NULL if unknown
41  */
42 const char *exif_byte_order_get_name (ExifByteOrder order);
43 
44 #ifdef __cplusplus
45 }
46 #endif /* __cplusplus */
47 
48 #endif /* !defined(LIBEXIF_EXIF_BYTE_ORDER_H) */
49