Blame iconv/iconvconfig.h

Packit 6c4009
/* Copyright (C) 2000-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
   Contributed by Ulrich Drepper <drepper@redhat.com>, 2000.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public License as
Packit 6c4009
   published by the Free Software Foundation; either version 2.1 of the
Packit 6c4009
   License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; see the file COPYING.LIB.  If
Packit 6c4009
   not, see <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#include <stdint.h>
Packit 6c4009
Packit 6c4009
Packit 6c4009
typedef uint16_t gidx_t;
Packit 6c4009
Packit 6c4009
Packit 6c4009
struct gconvcache_header
Packit 6c4009
{
Packit 6c4009
  uint32_t magic;
Packit 6c4009
  gidx_t string_offset;
Packit 6c4009
  gidx_t hash_offset;
Packit 6c4009
  gidx_t hash_size;
Packit 6c4009
  gidx_t module_offset;
Packit 6c4009
  gidx_t otherconv_offset;
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
struct hash_entry
Packit 6c4009
{
Packit 6c4009
  gidx_t string_offset;
Packit 6c4009
  gidx_t module_idx;
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
struct module_entry
Packit 6c4009
{
Packit 6c4009
  gidx_t canonname_offset;
Packit 6c4009
  gidx_t fromdir_offset;
Packit 6c4009
  gidx_t fromname_offset;
Packit 6c4009
  gidx_t todir_offset;
Packit 6c4009
  gidx_t toname_offset;
Packit 6c4009
  gidx_t extra_offset;
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
struct extra_entry
Packit 6c4009
{
Packit 6c4009
  gidx_t module_cnt;
Packit 6c4009
  struct extra_entry_module
Packit 6c4009
  {
Packit 6c4009
    gidx_t outname_offset;
Packit 6c4009
    gidx_t dir_offset;
Packit 6c4009
    gidx_t name_offset;
Packit 6c4009
  } module[0];
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
Packit 6c4009
#define GCONVCACHE_MAGIC	0x20010324
Packit 6c4009
Packit 6c4009
Packit 6c4009
#define GCONV_MODULES_CACHE	GCONV_DIR "/gconv-modules.cache"