• 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  * SPDX-License-Identifier: LGPL-2.0-or-later
23  */
24 
25 #ifndef LIBEXIF_EXIF_BYTE_ORDER_H
26 #define LIBEXIF_EXIF_BYTE_ORDER_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31 
32 /*! Which byte order to use */
33 typedef enum {
34 	/*! Big-endian byte order */
35 	EXIF_BYTE_ORDER_MOTOROLA,
36 	/*! Little-endian byte order */
37 	EXIF_BYTE_ORDER_INTEL
38 } ExifByteOrder;
39 
40 /*! Return a short, localized, textual name for the given byte order.
41  * \param[in] order byte order
42  * \return localized textual name of the byte order, or NULL if unknown
43  */
44 const char *exif_byte_order_get_name (ExifByteOrder order);
45 
46 #ifdef __cplusplus
47 }
48 #endif /* __cplusplus */
49 
50 #endif /* !defined(LIBEXIF_EXIF_BYTE_ORDER_H) */
51