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
|
/* $OpenLDAP: pkg/ldap/include/lber_types.nt,v 1.2.2.3 2002/01/04 20:38:14 kurt Exp $ */
/*
* Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted only
* as authorized by the OpenLDAP Public License. A copy of this
* license is available at http://www.OpenLDAP.org/license.html or
* in file LICENSE in the top-level directory of the distribution.
*/
/*
* LBER types for Windows NT (and Win32)
* copied by setup.mak to lber_types.h (when confingure is not used).
*/
#ifndef _LBER_TYPES_H
#define _LBER_TYPES_H
#include <ldap_cdefs.h>
LDAP_BEGIN_DECL
/*
* NT types:
*
* bitsof(short) == 2
* bitsof(int) == 4
* bitsof(long) == 4 (or larger)
*
* typedef unsigned int size_t;
* typedef unsigned int SOCKET;
*
* we use native C types to avoid sucking in system headers
*/
/* LBER boolean, enum, integers - 32 bits or larger*/
#define LBER_INT_T int
/* LBER tags - 32 bits or larger */
#define LBER_TAG_T long
/* LBER socket descriptor */
#define LBER_SOCKET_T unsigned int
/* LBER lengths - 32 bits or larger*/
#define LBER_LEN_T long
/* ------------------------------------------------------------ */
/* booleans, enumerations, and integers */
typedef LBER_INT_T ber_int_t;
/* signed and unsigned versions */
typedef signed LBER_INT_T ber_sint_t;
typedef unsigned LBER_INT_T ber_uint_t;
/* tags */
typedef unsigned LBER_TAG_T ber_tag_t;
/* "socket" descriptors */
typedef LBER_SOCKET_T ber_socket_t;
/* lengths */
typedef unsigned LBER_LEN_T ber_len_t;
/* signed lengths */
typedef signed LBER_LEN_T ber_slen_t;
LDAP_END_DECL
#endif /* _LBER_TYPES_H */
|