00000004
  5   ˆl–Ðz¾”*j"T% íÀ·pAS�ÿ�þ[|«6Q„��¦›i ?ÂƒL½ÁÀ¿ ž    This package was downloaded from
http://xorg.freedesktop.org/releases/individual/lib/

This package was originally Debianized by Colin Walters
<walters@debian.org> on Sun, 13 Oct 2002 15:01:50 -0400.

Later versions were Debianized by Branden Robinson <branden@debian.org>.

Upstream maintainer: Keith Packard

Copyright and license:

Copyright Â© 2001,2003 Keith Packard

Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation, and that the name of Keith Packard not be used in
advertising or publicity pertaining to distribution of the software without
specific, written prior permission.  Keith Packard makes no
representations about the suitability of this software for any purpose.  It
is provided "as is" without express or implied warranty.

KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ã597_‘I|¥‰ÓMdœv ©ƒ†ü+=ÃÂ U    ‹      Õ–ßoÚ0ÇßûWx~Ø�ÒªmðÔ‘JC£€(Ó4MSebC¬&vd(ýëçà´M§¢1­TíÓù’oîîãœ„¢awòct�¾L.ûhôís¿×E¸ð½Õˆ&‘qXo Œpbm~
°Z­ê«V]é9LÆ�Ø,=cµˆm�Y†ÉAX<#(L8eÎ¢Ð
›rÒ“Œß"5C ÖÆÝwkŒ/EÌM1¶<ƒŒgJ¯KsÜ©o”nûè‰í|l—ÊtáT±uQE°§Œ.ðŠN7‰‹¡&¡MÐ’¦b.;Øª“PdsdtÜÁ b%LS*oês1Ãˆ¦¶ƒöºÃ_N6)¾&!E‰æ³þÔíÎ†�“ÍxôyÍ¥ÓœcÒ§Æ¢L11œm_yñ•¸Û0òšˆ›X‹Ü
%¥à«¨±JMNkÛ$ºªòö·Ù ñ“É��/“¨7öSÂŠ�ÕýÿÿÃdD5—EBóØºW%œÏôQNM~vï¢²t-æ‰Å¡zVù¼3•2®«ÄÛXïëõ¶Zåe5Í£ZÔ‚Ÿ6ŽÚcýy#ÕJV\;< d*$ÇÄÛ š
Ú§‡'[Ü&ôõòdm®}“aRqÞ+Š(¶Á’d3~+ »/Š\­¸v‹ÂÛ—¨ÿ•…vÛÑ²810yîŒÑj¼•~2–Z‡°1ï¯‹ÌbZžáaü·Ø_º³o_à•û¨Ä®ï”ä“Š³ÿžÚñåõ.„Íu2©ý—õ É7    ?   ˆl–Ü4ý(TÊ:”Ê€Á=q—”Å£�þDåY¹B0¿#ÀïùÆƒy¶™Å_ˆI|¥�+y,ÅÄ !_    #ifdef __cplusplus
extern "C" {
#endif

#ifndef MAXMINDDB_H
#define MAXMINDDB_H

/* Request POSIX.1-2008. However, we want to remain compatible with
 * POSIX.1-2001 (since we have been historically and see no reason to drop
 * compatibility). By requesting POSIX.1-2008, we can conditionally use
 * features provided by that standard if the implementation provides it. We can
 * check for what the implementation provides by checking the _POSIX_VERSION
 * macro after including unistd.h. If a feature is in POSIX.1-2008 but not
 * POSIX.1-2001, check that macro before using the feature (or check for the
 * feature directly if possible). */
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif

#include "maxminddb_config.h"
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/types.h>

#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
/* libmaxminddb package version from configure */
#define PACKAGE_VERSION "1.7.1"

typedef ADDRESS_FAMILY sa_family_t;

#if defined(_MSC_VER)
/* MSVC doesn't define signed size_t, copy it from configure */
#define ssize_t SSIZE_T

/* MSVC doesn't support restricted pointers */
#define restrict
#endif
#else
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#endif

#define MMDB_DATA_TYPE_EXTENDED (0)
#define MMDB_DATA_TYPE_POINTER (1)
#define MMDB_DATA_TYPE_UTF8_STRING (2)
#define MMDB_DATA_TYPE_DOUBLE (3)
#define MMDB_DATA_TYPE_BYTES (4)
#define MMDB_DATA_TYPE_UINT16 (5)
#define MMDB_DATA_TYPE_UINT32 (6)
#define MMDB_DATA_TYPE_MAP (7)
#define MMDB_DATA_TYPE_INT32 (8)
#define MMDB_DATA_TYPE_UINT64 (9)
#define MMDB_DATA_TYPE_UINT128 (10)
#define MMDB_DATA_TYPE_ARRAY (11)
#define MMDB_DATA_TYPE_CONTAINER (12)
#define MMDB_DATA_TYPE_END_MARKER (13)
#define MMDB_DATA_TYPE_BOOLEAN (14)
#define MMDB_DATA_TYPE_FLOAT