| 1 | /* include/lber_types.h. Generated from lber_types.hin by configure. */ |
| 2 | /* $OpenLDAP$ */ |
| 3 | /* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
| 4 | * |
| 5 | * Copyright 1998-2014 The OpenLDAP Foundation. |
| 6 | * All rights reserved. |
| 7 | * |
| 8 | * Redistribution and use in source and binary forms, with or without |
| 9 | * modification, are permitted only as authorized by the OpenLDAP |
| 10 | * Public License. |
| 11 | * |
| 12 | * A copy of this license is available in file LICENSE in the |
| 13 | * top-level directory of the distribution or, alternatively, at |
| 14 | * <http://www.OpenLDAP.org/license.html>. |
| 15 | */ |
| 16 | |
| 17 | /* |
| 18 | * LBER types |
| 19 | */ |
| 20 | |
| 21 | #ifndef _LBER_TYPES_H |
| 22 | #define _LBER_TYPES_H |
| 23 | |
| 24 | #include <ldap_cdefs.h> |
| 25 | |
| 26 | LDAP_BEGIN_DECL |
| 27 | |
| 28 | /* LBER boolean, enum, integers (32 bits or larger) */ |
| 29 | #define LBER_INT_T int |
| 30 | |
| 31 | /* LBER tags (32 bits or larger) */ |
| 32 | #define LBER_TAG_T long |
| 33 | |
| 34 | /* LBER socket descriptor */ |
| 35 | #define LBER_SOCKET_T int |
| 36 | |
| 37 | /* LBER lengths (32 bits or larger) */ |
| 38 | #define LBER_LEN_T long |
| 39 | |
| 40 | /* ------------------------------------------------------------ */ |
| 41 | |
| 42 | /* booleans, enumerations, and integers */ |
| 43 | typedef LBER_INT_T ber_int_t; |
| 44 | |
| 45 | /* signed and unsigned versions */ |
| 46 | typedef signed LBER_INT_T ber_sint_t; |
| 47 | typedef unsigned LBER_INT_T ber_uint_t; |
| 48 | |
| 49 | /* tags */ |
| 50 | typedef unsigned LBER_TAG_T ber_tag_t; |
| 51 | |
| 52 | /* "socket" descriptors */ |
| 53 | typedef LBER_SOCKET_T ber_socket_t; |
| 54 | |
| 55 | /* lengths */ |
| 56 | typedef unsigned LBER_LEN_T ber_len_t; |
| 57 | |
| 58 | /* signed lengths */ |
| 59 | typedef signed LBER_LEN_T ber_slen_t; |
| 60 | |
| 61 | LDAP_END_DECL |
| 62 | |
| 63 | #endif /* _LBER_TYPES_H */ |
| 64 | |