Use upstream tag
[platform/upstream/libsecret.git] / egg / egg-hex.h
1 /*
2  * gnome-keyring
3  *
4  * Copyright (C) 2008 Stefan Walter
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as
8  * published by the Free Software Foundation; either version 2.1 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301 USA
20  *
21  * Author: Stef Walter <stefw@thewalter.net>
22  */
23
24 #ifndef EGG_HEX_H_
25 #define EGG_HEX_H_
26
27 #include <glib.h>
28
29 gpointer              egg_hex_decode                         (const gchar *data,
30                                                               gssize n_data,
31                                                               gsize *n_decoded);
32
33 gpointer              egg_hex_decode_full                    (const gchar *data,
34                                                               gssize n_data,
35                                                               const gchar *delim,
36                                                               guint group,
37                                                               gsize *n_decoded);
38
39 gchar*                egg_hex_encode                         (gconstpointer data,
40                                                               gsize n_data);
41
42 gchar*                egg_hex_encode_full                    (gconstpointer data,
43                                                               gsize n_data,
44                                                               gboolean upper_case,
45                                                               const gchar *delim,
46                                                               guint group);
47
48 #endif /* EGG_HEX_H_ */