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