version 1.2.2.1, 1999/09/10 20:25:22
|
version 1.2.2.2, 2000/06/13 17:57:14
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/include/lber_types.nt,v 1.2 1999/08/30 23:17:01 kdz Exp $ */ |
/* $OpenLDAP: pkg/ldap/include/lber_types.nt,v 1.9 2000/05/13 00:26:27 kurt Exp $ */ |
/* |
/* |
* Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA |
* Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA |
* All rights reserved. |
* All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms are permitted only |
* Redistribution and use in source and binary forms are permitted only |
Line 10
|
Line 10
|
*/ |
*/ |
|
|
/* |
/* |
* LBER types for Windows NT |
* LBER types for Windows NT (and Win32) |
|
* copied by setup.mak to lber_types.h (when confingure is not used). |
*/ |
*/ |
|
|
#ifndef _LBER_TYPES_H_NT |
#ifndef _LBER_TYPES_H |
#define _LBER_TYPES_H_NT |
#define _LBER_TYPES_H |
|
|
|
#include <ldap_cdefs.h> |
|
|
|
LDAP_BEGIN_DECL |
|
|
/* |
/* |
* NT types: |
* NT types: |
* |
* |
* bitsof(short) == 2 |
* bitsof(short) == 2 |
* bitsof(int) == 4 |
* bitsof(int) == 4 |
* bitsof(long) == 4 |
* bitsof(long) == 4 (or larger) |
* |
* |
* typedef unsigned int size_t; |
* typedef unsigned int size_t; |
* typedef unsigned int SOCKET; |
* typedef unsigned int SOCKET; |
Line 39
|
Line 44
|
#define LBER_SOCKET_T unsigned int |
#define LBER_SOCKET_T unsigned int |
|
|
/* LBER lengths - 32 bits or larger*/ |
/* LBER lengths - 32 bits or larger*/ |
#define LBER_LEN_T int |
#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_NT */ |
#endif /* _LBER_TYPES_H */ |