~ubuntu-branches/ubuntu/trusty/gcr/trusty-proposed

« back to all changes in this revision

Viewing changes to egg/egg-dn.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-03 10:18:39 UTC
  • Revision ID: package-import@ubuntu.com-20120503101839-wuvloldm7gmdsnij
Tags: upstream-3.4.1
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 
2
/* egg-dn.h - ASN.1 helper routines
 
3
 
 
4
   Copyright (C) 2010 Stefan Walter
 
5
 
 
6
   The Gnome Keyring Library is free software; you can redistribute it and/or
 
7
   modify it under the terms of the GNU Library General Public License as
 
8
   published by the Free Software Foundation; either version 2 of the
 
9
   License, or (at your option) any later version.
 
10
 
 
11
   The Gnome Keyring Library is distributed in the hope that it will be useful,
 
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
   Library General Public License for more details.
 
15
 
 
16
   You should have received a copy of the GNU Library General Public
 
17
   License along with the Gnome Library; see the file COPYING.LIB.  If not,
 
18
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
19
   Boston, MA 02111-1307, USA.
 
20
 
 
21
   Author: Stef Walter <stef@memberwebs.com>
 
22
*/
 
23
 
 
24
#ifndef EGG_DN_H_
 
25
#define EGG_DN_H_
 
26
 
 
27
#include <glib.h>
 
28
 
 
29
#include "egg/egg-bytes.h"
 
30
 
 
31
gchar*             egg_dn_read                            (GNode *node);
 
32
 
 
33
gchar*             egg_dn_read_part                       (GNode *node,
 
34
                                                           const gchar *match);
 
35
 
 
36
typedef void       (*EggDnCallback)                       (guint index,
 
37
                                                           GQuark oid,
 
38
                                                           EggBytes *value,
 
39
                                                           gpointer user_data);
 
40
 
 
41
gboolean           egg_dn_parse                           (GNode *node,
 
42
                                                           EggDnCallback callback,
 
43
                                                           gpointer user_data);
 
44
 
 
45
gchar*             egg_dn_print_value                     (GQuark oid,
 
46
                                                           EggBytes *value);
 
47
 
 
48
void               egg_dn_add_string_part                 (GNode *node,
 
49
                                                           GQuark oid,
 
50
                                                           const gchar *string);
 
51
 
 
52
#endif /* EGG_DN_H_ */