Back to index

glibc  2.9
iconvconfig.h
Go to the documentation of this file.
00001 /* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003    Contributed by Ulrich Drepper <drepper@redhat.com>, 2000.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public License as
00007    published by the Free Software Foundation; either version 2.1 of the
00008    License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; see the file COPYING.LIB.  If not,
00017    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018    Boston, MA 02111-1307, USA.  */
00019 
00020 #include <stdint.h>
00021 
00022 
00023 typedef uint16_t gidx_t;
00024 
00025 
00026 struct gconvcache_header
00027 {
00028   uint32_t magic;
00029   gidx_t string_offset;
00030   gidx_t hash_offset;
00031   gidx_t hash_size;
00032   gidx_t module_offset;
00033   gidx_t otherconv_offset;
00034 };
00035 
00036 struct hash_entry
00037 {
00038   gidx_t string_offset;
00039   gidx_t module_idx;
00040 };
00041 
00042 struct module_entry
00043 {
00044   gidx_t canonname_offset;
00045   gidx_t fromdir_offset;
00046   gidx_t fromname_offset;
00047   gidx_t todir_offset;
00048   gidx_t toname_offset;
00049   gidx_t extra_offset;
00050 };
00051 
00052 struct extra_entry
00053 {
00054   gidx_t module_cnt;
00055   struct extra_entry_module
00056   {
00057     gidx_t outname_offset;
00058     gidx_t dir_offset;
00059     gidx_t name_offset;
00060   } module[0];
00061 };
00062 
00063 
00064 #define GCONVCACHE_MAGIC    0x20010324
00065 
00066 
00067 #define GCONV_MODULES_CACHE GCONV_DIR "/gconv-modules.cache"