/usr/include/zim/zim.h is in libzim-dev 1.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | /*
* Copyright (C) 2006 Tommi Maekitalo
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* is provided AS IS, WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, and
* NON-INFRINGEMENT. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef ZIM_ZIM_H
#define ZIM_ZIM_H
#include <limits.h>
namespace zim
{
// define 8 bit integer types
//
typedef unsigned char uint8_t;
typedef char int8_t;
// define 16 bit integer types
//
#if USHRT_MAX == 0xffff
typedef unsigned short uint16_t;
typedef short int16_t;
#elif UINT_MAX == 0xffff
typedef unsigned int uint16_t;
typedef int int16_t;
#elif ULONG_MAX == 0xffff
typedef unsigned long uint16_t;
typedef long int16_t;
#else
}
#include <stdint.h>
namespace zim
{
#endif
// define 32 bit integer types
//
#if USHRT_MAX == 0xffffffffUL
typedef unsigned short uint32_t;
typedef short int32_t;
#elif UINT_MAX == 0xffffffffUL
typedef unsigned int uint32_t;
typedef int int32_t;
#elif ULONG_MAX == 0xffffffffUL
typedef unsigned long uint32_t;
typedef long int32_t;
#else
}
#include <stdint.h>
namespace zim
{
#endif
// define 64 bit integer types
//
#if UINT_MAX == 18446744073709551615ULL
typedef unsigned int uint64_t;
typedef int int64_t;
#elif ULONG_MAX == 18446744073709551615ULL
typedef unsigned long uint64_t;
typedef long int64_t;
#elif ULLONG_MAX == 18446744073709551615ULL
typedef unsigned long long uint64_t;
typedef long long int64_t;
#else
}
#include <stdint.h>
namespace zim
{
#endif
typedef uint32_t size_type;
#ifdef _WIN32
typedef __int64 offset_type;
#else
typedef uint64_t offset_type;
#endif
enum CompressionType
{
zimcompDefault,
zimcompNone,
zimcompZip,
zimcompBzip2,
zimcompLzma
};
static const char MimeHtmlTemplate[] = "text/x-zim-htmltemplate";
}
#endif // ZIM_ZIM_H
|