X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Flber_types.h.in;h=692f02c1a1a779f7ed1a0450b209f3af4cba0447;hb=4fcab959c02ef360373e055f8a739f16286e8112;hp=6abba8f722d0246d33ef4b53edd609e5cdee8937;hpb=bd36de108fd8b44ec751581efbef600b6d13c7d6;p=openldap diff --git a/include/lber_types.h.in b/include/lber_types.h.in index 6abba8f722..692f02c1a1 100644 --- a/include/lber_types.h.in +++ b/include/lber_types.h.in @@ -1,12 +1,16 @@ /* $OpenLDAP$ */ -/* - * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA +/* This work is part of OpenLDAP Software . + * + * Copyright 1998-2005 The OpenLDAP Foundation. * 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. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted only as authorized by the OpenLDAP + * Public License. + * + * A copy of this license is available in file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . */ /* @@ -16,16 +20,43 @@ #ifndef _LBER_TYPES_H #define _LBER_TYPES_H -/* LBER boolean, enum, integers - 32 bits or larger*/ +#include + +LDAP_BEGIN_DECL + +/* LBER boolean, enum, integers (32 bits or larger) */ #undef LBER_INT_T -/* LBER tags - 32 bits or larger */ +/* LBER tags (32 bits or larger) */ #undef LBER_TAG_T /* LBER socket descriptor */ #undef LBER_SOCKET_T -/* LBER lengths - 32 bits or larger*/ +/* LBER lengths (32 bits or larger) */ #undef LBER_LEN_T +/* ------------------------------------------------------------ */ + +/* 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 */