exif-byte-order.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #ifndef __EXIF_BYTE_ORDER_H__
  23. #define __EXIF_BYTE_ORDER_H__
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif /* __cplusplus */
  27. /*! Which byte order to use */
  28. typedef enum {
  29. /*! Big-endian byte order */
  30. EXIF_BYTE_ORDER_MOTOROLA,
  31. /*! Little-endian byte order */
  32. EXIF_BYTE_ORDER_INTEL
  33. } ExifByteOrder;
  34. /*! Return a short, localized, textual name for the given byte order.
  35. * \param[in] order byte order
  36. * \return localized textual name of the byte order
  37. */
  38. const char *exif_byte_order_get_name (ExifByteOrder order);
  39. #ifdef __cplusplus
  40. }
  41. #endif /* __cplusplus */
  42. #endif /* __EXIF_BYTE_ORDER_H__ */