1999-08-30 21:17:01 -04:00
|
|
|
/* $OpenLDAP$ */
|
1999-06-18 19:53:05 -04:00
|
|
|
/*
|
2003-01-03 15:20:47 -05:00
|
|
|
* Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
|
1999-06-18 19:53:05 -04:00
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
1999-11-08 10:38:59 -05:00
|
|
|
* LBER types for Windows NT (and Win32)
|
|
|
|
|
* copied by setup.mak to lber_types.h (when confingure is not used).
|
1999-06-18 19:53:05 -04:00
|
|
|
*/
|
|
|
|
|
|
1999-11-08 10:38:59 -05:00
|
|
|
#ifndef _LBER_TYPES_H
|
|
|
|
|
#define _LBER_TYPES_H
|
1999-06-18 19:53:05 -04:00
|
|
|
|
1999-11-23 18:07:00 -05:00
|
|
|
#include <ldap_cdefs.h>
|
|
|
|
|
|
|
|
|
|
LDAP_BEGIN_DECL
|
|
|
|
|
|
1999-06-18 19:53:05 -04:00
|
|
|
/*
|
|
|
|
|
* NT types:
|
|
|
|
|
*
|
|
|
|
|
* bitsof(short) == 2
|
|
|
|
|
* bitsof(int) == 4
|
1999-11-27 21:14:09 -05:00
|
|
|
* bitsof(long) == 4 (or larger)
|
1999-06-18 19:53:05 -04:00
|
|
|
*
|
|
|
|
|
* 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*/
|
1999-11-26 18:32:18 -05:00
|
|
|
#define LBER_INT_T int
|
1999-06-18 19:53:05 -04:00
|
|
|
|
|
|
|
|
/* 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*/
|
1999-11-25 12:10:45 -05:00
|
|
|
#define LBER_LEN_T long
|
1999-06-18 19:53:05 -04:00
|
|
|
|
1999-11-23 18:03:12 -05:00
|
|
|
/* ------------------------------------------------------------ */
|
|
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
|
|
1999-11-23 18:07:00 -05:00
|
|
|
LDAP_END_DECL
|
|
|
|
|
|
1999-11-08 10:38:59 -05:00
|
|
|
#endif /* _LBER_TYPES_H */
|