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