|
Packit |
db3073 |
/* gbase64.h - Base64 coding functions
|
|
Packit |
db3073 |
*
|
|
Packit |
db3073 |
* Copyright (C) 2005 Alexander Larsson <alexl@redhat.com>
|
|
Packit |
db3073 |
*
|
|
Packit |
db3073 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
db3073 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
db3073 |
* License as published by the Free Software Foundation; either
|
|
Packit |
db3073 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
db3073 |
*
|
|
Packit |
db3073 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
db3073 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
db3073 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
db3073 |
* Library General Public License for more details.
|
|
Packit |
db3073 |
*
|
|
Packit |
db3073 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
db3073 |
* License along with this library; if not, write to the
|
|
Packit |
db3073 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit |
db3073 |
* Boston, MA 02111-1307, USA.
|
|
Packit |
db3073 |
*/
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
|
|
Packit |
db3073 |
#error "Only <glib.h> can be included directly."
|
|
Packit |
db3073 |
#endif
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
#ifndef __G_BASE64_H__
|
|
Packit |
db3073 |
#define __G_BASE64_H__
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
#include <glib/gtypes.h>
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
G_BEGIN_DECLS
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
gsize g_base64_encode_step (const guchar *in,
|
|
Packit |
db3073 |
gsize len,
|
|
Packit |
db3073 |
gboolean break_lines,
|
|
Packit |
db3073 |
gchar *out,
|
|
Packit |
db3073 |
gint *state,
|
|
Packit |
db3073 |
gint *save);
|
|
Packit |
db3073 |
gsize g_base64_encode_close (gboolean break_lines,
|
|
Packit |
db3073 |
gchar *out,
|
|
Packit |
db3073 |
gint *state,
|
|
Packit |
db3073 |
gint *save);
|
|
Packit |
db3073 |
gchar* g_base64_encode (const guchar *data,
|
|
Packit |
db3073 |
gsize len) G_GNUC_MALLOC;
|
|
Packit |
db3073 |
gsize g_base64_decode_step (const gchar *in,
|
|
Packit |
db3073 |
gsize len,
|
|
Packit |
db3073 |
guchar *out,
|
|
Packit |
db3073 |
gint *state,
|
|
Packit |
db3073 |
guint *save);
|
|
Packit |
db3073 |
guchar *g_base64_decode (const gchar *text,
|
|
Packit |
db3073 |
gsize *out_len) G_GNUC_MALLOC;
|
|
Packit |
db3073 |
guchar *g_base64_decode_inplace (gchar *text,
|
|
Packit |
db3073 |
gsize *out_len);
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
G_END_DECLS
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
#endif /* __G_BASE64_H__ */
|