mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
15da11125d
2005-04-23 Raphael Quinet <raphael@gimp.org> * plug-ins/metadata/xmp-schemas.[ch]: Added definition of properties from IPTC Core XMP schema (Iptc4xmpCore). * plug-ins/metadata/base64.[ch]: Added option to ignore invalid characters in base64 encoded text. * plug-ins/metadata/xmp-parse.c * plug-ins/metadata/testbase64.c: Updated accordingly.
43 lines
1.4 KiB
C
43 lines
1.4 KiB
C
/* base64.h - encode and decode base64 encoding according to RFC 1521
|
|
*
|
|
* Copyright (C) 2005, Raphaël Quinet <raphael@gimp.org>
|
|
*
|
|
* 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 2 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, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef BASE64_H
|
|
#define BASE64_H
|
|
|
|
#include <glib.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
gssize base64_decode (const gchar *src_b64,
|
|
gsize src_size,
|
|
gchar *dest,
|
|
gsize dest_size,
|
|
gboolean ignore_errors);
|
|
|
|
gssize base64_encode (const gchar *src,
|
|
gsize src_size,
|
|
gchar *dest_b64,
|
|
gsize dest_size,
|
|
gint columns);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* BASE64_H */
|