blob: c59b70d25f58b3b50f1b9b3e4cd9d88d0617143f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
#if !defined(_ICON_TOOLS_H_)
#define _ICON_TOOLS_H_
#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk-pixbuf/gdk-pixdata.h>
GdkPixbuf* icon_deserialize(const guint8 *sd, guint len);
guint8* icon_serialize(const GdkPixbuf *pixbuf, guint *len);
guint8* icon_file_serialize(const gchar *filename, guint *len);
GdkPixbuf* base64_to_icon(const gchar *bd);
gchar* icon_to_base64(const GdkPixbuf *pixbuf);
gchar* icon_file_to_base64(const gchar *filename);
#endif // _ICON_TOOLS_H_
|