~kroq-gar78/ubuntu/precise/gnome-control-center/fix-885947

« back to all changes in this revision

Viewing changes to panels/common/locarchive.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mfrom: (0.1.11 experimental) (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517104727-lqel6m8vhfw5jby1
Tags: 1:3.0.1.1-1ubuntu1
* Rebase on Debian, remaining Ubuntu changes:
* debian/control:
  - Build-Depend on hardening-wrapper, dpkg-dev and dh-autoreconf
  - Add dependency on ubuntu-system-service
  - Remove dependency on gnome-icon-theme-symbolic
  - Move dependency on apg, gnome-icon-theme-symbolic and accountsservice to
    be a Recommends: until we get them in main
* debian/rules:
  - Use autoreconf
  - Add binary-post-install rule for gnome-control-center-data
  - Run dh-autoreconf
* debian/gnome-control-center.dirs:
* debian/gnome-control-center.links:
  - Add a link to the control center shell for indicators
* debian/patches/00_disable-nm.patch:
  - Temporary patch to disable building with NetworkManager until we get
    the new one in the archive
* debian/patches/01_git_remove_gettext_calls.patch:
  - Remove calls to AM_GNU_GETTEXT, IT_PROG_INTLTOOL should be enough
* debian/patches/01_git_kill_warning.patch:
  - Kill warning
* debian/patches/50_ubuntu_systemwide_prefs.patch:
  - Ubuntu specific proxy preferences
* debian/patches/51_ubuntu_system_keyboard.patch:
  - Implement the global keyboard spec at https://wiki.ubuntu.com/DefaultKeyboardSettings

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Definitions for locale archive handling.
 
2
   Copyright (C) 2002 Free Software Foundation, Inc.
 
3
   This file is part of the GNU C Library.
 
4
 
 
5
   The GNU C Library is free software; you can redistribute it and/or
 
6
   modify it under the terms of the GNU Lesser General Public
 
7
   License as published by the Free Software Foundation; either
 
8
   version 2.1 of the License, or (at your option) any later version.
 
9
 
 
10
   The GNU C Library is distributed in the hope that it will be useful,
 
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
   Lesser General Public License for more details.
 
14
 
 
15
   You should have received a copy of the GNU Lesser General Public
 
16
   License along with the GNU C Library; if not, write to the Free
 
17
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 
18
   02111-1307 USA.  */
 
19
 
 
20
#ifndef _LOCARCHIVE_H
 
21
#define _LOCARCHIVE_H 1
 
22
 
 
23
#include <stdint.h>
 
24
 
 
25
#define AR_MAGIC 0xde020109
 
26
 
 
27
struct locarhead
 
28
{
 
29
  uint32_t magic;
 
30
  /* Serial number.  */
 
31
  uint32_t serial;
 
32
  /* Name hash table.  */
 
33
  uint32_t namehash_offset;
 
34
  uint32_t namehash_used;
 
35
  uint32_t namehash_size;
 
36
  /* String table.  */
 
37
  uint32_t string_offset;
 
38
  uint32_t string_used;
 
39
  uint32_t string_size;
 
40
  /* Table with locale records.  */
 
41
  uint32_t locrectab_offset;
 
42
  uint32_t locrectab_used;
 
43
  uint32_t locrectab_size;
 
44
  /* MD5 sum hash table.  */
 
45
  uint32_t sumhash_offset;
 
46
  uint32_t sumhash_used;
 
47
  uint32_t sumhash_size;
 
48
};
 
49
 
 
50
 
 
51
struct namehashent
 
52
{
 
53
  /* Hash value of the name.  */
 
54
  uint32_t hashval;
 
55
  /* Offset of the name in the string table.  */
 
56
  uint32_t name_offset;
 
57
  /* Offset of the locale record.  */
 
58
  uint32_t locrec_offset;
 
59
};
 
60
 
 
61
 
 
62
struct sumhashent
 
63
{
 
64
  /* MD5 sum.  */
 
65
  char sum[16];
 
66
  /* Offset of the file in the archive.  */
 
67
  uint32_t file_offset;
 
68
};
 
69
 
 
70
struct locrecent
 
71
{
 
72
  uint32_t refs;                /* # of namehashent records that point here */
 
73
  struct
 
74
  {
 
75
    uint32_t offset;
 
76
    uint32_t len;
 
77
  } record[__LC_LAST];
 
78
};
 
79
 
 
80
 
 
81
struct locarhandle
 
82
{
 
83
  int fd;
 
84
  void *addr;
 
85
  size_t len;
 
86
};
 
87
 
 
88
 
 
89
/* In memory data for the locales with their checksums.  */
 
90
typedef struct locale_category_data
 
91
{
 
92
  off_t size;
 
93
  void *addr;
 
94
  char sum[16];
 
95
} locale_data_t[__LC_LAST];
 
96
 
 
97
#endif  /* locarchive.h */