mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
c9979abf5f
2005-04-18 Raphael Quinet <raphael@gimp.org> * plug-ins/metadata/base64.[ch]: Added parameter 'columns' to base64_encode() to add optional line breaks in the output. Improved documentation.
42 lines
1.3 KiB
C
42 lines
1.3 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);
|
|
|
|
gssize base64_encode (const gchar *src,
|
|
gsize src_size,
|
|
gchar *dest_b64,
|
|
gsize dest_size,
|
|
gint columns);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* BASE64_H */
|