~ubuntu-branches/ubuntu/precise/gnome-keyring/precise

« back to all changes in this revision

Viewing changes to gcr/gcr-colons.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson, Chris Coulson, Mathieu Trudel-Lapierre
  • Date: 2011-08-10 12:29:33 UTC
  • mfrom: (1.1.70 upstream)
  • Revision ID: james.westby@ubuntu.com-20110810122933-0ezu9rqbnw956vwn
Tags: 3.1.4-0ubuntu1
[ Chris Coulson ]
* New upstream release
* Drop the multi-flavor (gtk2/gtk3) build - the new version supports
  only gtk3
  - update debian/rules
  - bump debian/compat to 7, else we need to add debian/tmp back to all
    the install files so that dh_install can find them (or continue to
    specify DEB_DH_INSTALL_SOURCEDIR in debian/rules)
  - Drop libgcr1 and libgcr-dev from debian/control.in
  - Remove debian/libgcr1.install and debian/libgcr-dev.install
  - Drop the libgtk2.0-dev build-depend
* Update for the libgck -> libgck-1 soname change
  - update debian/control
  - rename debian/libgck0.install => debian/libgck-1-0.install
  - update debian/libgck-1-0.install
  - rename debian/libgck0.symbols => debian/libgck-1-0.symbols
  - update debian/libgck-1-0.symbols
  - rename debian/libgck-dev.install => debian/libgck-1-dev.install
  - update debian/libgck-1-dev.install
* Update symbols for libgcr-3. Note that upstream removed some symbols
  without bumping the soname (in addition to adding symbols). However,
  these aren't actually used anywhere, and they have only ever existed
  in the current unstable series so we just ignore this for now :/
  - update debian/libgcr-3-1.symbols
* Drop debian/patches/05_onlyshowin_unity.patch - fixed upstream
* Add build-depend on libp11-kit-dev
* Install the contents of /usr/share/icons and /etc/pkcs11
  - update debian/gnome-keyring.install
* Revert an unintentional change of the libgcr soname to an older version
  - add debian/patches/05_revert_gcr_soname_bump.patch
  - update debian/patches/series

[ Mathieu Trudel-Lapierre ]
* debian/patches/99git_fs_caps_11a5d41.patch,
  debian/patches/99git_ipc_lock_caps_ad67edd.patch: dropped, included in
  release upstream tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * gnome-keyring
3
 
 *
4
 
 * Copyright (C) 2011 Collabora Ltd.
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., 59 Temple Place - Suite 330, Boston, MA
19
 
 * 02111-1307, USA.
20
 
 *
21
 
 * Author: Stef Walter <stefw@collabora.co.uk>
22
 
 */
23
 
 
24
 
#if !defined (__GCR_H_INSIDE__) && !defined (GCR_COMPILATION)
25
 
#error "Only <gcr/gcr.h> can be included directly."
26
 
#endif
27
 
 
28
 
#ifndef GCR_GNUPG_COLONS_H
29
 
#define GCR_GNUPG_COLONS_H
30
 
 
31
 
#include <glib.h>
32
 
 
33
 
/*
34
 
 * Gnupg's official format for listing keys is in the '--with-colons' format.
35
 
 * This is documented in doc/DETAILS in the gnupg distribution. Looks like:
36
 
 *
37
 
 * pub:f:1024:17:6C7EE1B8621CC013:899817715:1055898235::m:::scESC:
38
 
 * fpr:::::::::ECAF7590EB3443B5C7CF3ACB6C7EE1B8621CC013:
39
 
 * uid:f::::::::Werner Koch <wk@g10code.com>:
40
 
 * uid:f::::::::Werner Koch <wk@gnupg.org>:
41
 
 * sub:f:1536:16:06AD222CADF6A6E1:919537416:1036177416:::::e:
42
 
 * fpr:::::::::CF8BCC4B18DE08FCD8A1615906AD222CADF6A6E1:
43
 
 * sub:r:1536:20:5CE086B5B5A18FF4:899817788:1025961788:::::esc:
44
 
 * fpr:::::::::AB059359A3B81F410FCFF97F5CE086B5B5A18FF4:
45
 
 *
46
 
 * Each row is colon delimeted, and has a certain 'schema'. The first item
47
 
 * in the row tells us the schema. Then the various columns are numbered,
48
 
 * (schema is zero).
49
 
 */
50
 
 
51
 
G_BEGIN_DECLS
52
 
 
53
 
#define GCR_COLONS_SCHEMA_UID  (g_quark_from_static_string ("uid"))
54
 
#define GCR_COLONS_SCHEMA_PUB  (g_quark_from_static_string ("pub"))
55
 
 
56
 
/* Common columns for all schemas */
57
 
typedef enum {
58
 
        GCR_COLONS_SCHEMA = 0
59
 
} GcrColonColumns;
60
 
 
61
 
/*
62
 
 * Columns for pub schema, add them as they're used. eg:
63
 
 * pub:f:1024:17:6C7EE1B8621CC013:899817715:1055898235::m:::scESC:
64
 
 */
65
 
typedef enum {
66
 
        GCR_COLONS_PUB_KEYID = 4
67
 
} GcrColonPubColumns;
68
 
 
69
 
/*
70
 
 * Columns for uid schema, add them as they're used. eg:
71
 
 * pub:f:1024:17:6C7EE1B8621CC013:899817715:1055898235::m:::scESC:
72
 
 */
73
 
typedef enum {
74
 
        GCR_COLONS_UID_NAME = 9
75
 
} GcrColonUidColumns;
76
 
 
77
 
typedef struct _GcrColons GcrColons;
78
 
 
79
 
GcrColons*     _gcr_colons_parse                (const gchar *line,
80
 
                                                 gssize n_line);
81
 
 
82
 
void           _gcr_colons_free                 (gpointer colons);
83
 
 
84
 
GcrColons*     _gcr_colons_find                 (GPtrArray *dataset,
85
 
                                                 GQuark schema);
86
 
 
87
 
gchar*         _gcr_colons_get_string           (GcrColons *colons,
88
 
                                                 guint column);
89
 
 
90
 
const gchar*   _gcr_colons_get_raw              (GcrColons *colons,
91
 
                                                 guint column);
92
 
 
93
 
GQuark         _gcr_colons_get_schema           (GcrColons *colons);
94
 
 
95
 
G_END_DECLS
96
 
 
97
 
#endif /* GCR_GNUPG_COLONS_H */