|
Packit Service |
f02b19 |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
|
|
Packit Service |
f02b19 |
/* egg-armor.h - Armor routines
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
Copyright (C) 2007 Stefan Walter
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
The Gnome Keyring Library is free software; you can redistribute it and/or
|
|
Packit Service |
f02b19 |
modify it under the terms of the GNU Library General Public License as
|
|
Packit Service |
f02b19 |
published by the Free Software Foundation; either version 2 of the
|
|
Packit Service |
f02b19 |
License, or (at your option) any later version.
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
The Gnome Keyring Library is distributed in the hope that it will be useful,
|
|
Packit Service |
f02b19 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
f02b19 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
f02b19 |
Library General Public License for more details.
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
You should have received a copy of the GNU Library General Public
|
|
Packit Service |
f02b19 |
License along with the Gnome Library; see the file COPYING.LIB. If not,
|
|
Packit Service |
f02b19 |
see <http://www.gnu.org/licenses/>.
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
Author: Stef Walter <stef@memberwebs.com>
|
|
Packit Service |
f02b19 |
*/
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#ifndef EGG_ARMOR_H_
|
|
Packit Service |
f02b19 |
#define EGG_ARMOR_H_
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#include <glib.h>
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
typedef void (*EggArmorCallback) (GQuark type,
|
|
Packit Service |
f02b19 |
GBytes *data,
|
|
Packit Service |
f02b19 |
GBytes *outer,
|
|
Packit Service |
f02b19 |
GHashTable *headers,
|
|
Packit Service |
f02b19 |
gpointer user_data);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
GHashTable* egg_armor_headers_new (void);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
guint egg_armor_parse (GBytes *data,
|
|
Packit Service |
f02b19 |
EggArmorCallback callback,
|
|
Packit Service |
f02b19 |
gpointer user_data);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
guchar* egg_armor_write (const guchar *data,
|
|
Packit Service |
f02b19 |
gsize n_data,
|
|
Packit Service |
f02b19 |
GQuark type,
|
|
Packit Service |
f02b19 |
GHashTable *headers,
|
|
Packit Service |
f02b19 |
gsize *n_result);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#endif /* EGG_ARMOR_H_ */
|