/* xmp-parse.h - simple parser for XMP metadata * * Copyright (C) 2004, Raphaƫl Quinet * * This library is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . */ #ifndef XMP_PARSE_H #define XMP_PARSE_H #include G_BEGIN_DECLS typedef enum { XMP_ERROR_NO_XPACKET, XMP_ERROR_BAD_ENCODING, XMP_ERROR_PARSE, XMP_ERROR_MISSING_ABOUT, XMP_ERROR_UNKNOWN_ELEMENT, XMP_ERROR_UNKNOWN_ATTRIBUTE, XMP_ERROR_UNEXPECTED_ELEMENT, XMP_ERROR_INVALID_CONTENT, XMP_ERROR_INVALID_COMMENT } XMPParseError; #define XMP_PARSE_ERROR xmp_parse_error_quark () GQuark xmp_parse_error_quark (void); typedef enum { XMP_FLAG_FIND_XPACKET = 1 << 0, /* allow text before