mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
Add additional types to lber-types.
This commit is contained in:
parent
749a6b1f29
commit
71d564aee4
doc/man/man3
@ -1,9 +1,9 @@
|
|||||||
.TH LBER_TYPES 3 "22 July 2001" "OpenLDAP LDVERSION"
|
.TH LBER_TYPES 3 "29 August 2001" "OpenLDAP LDVERSION"
|
||||||
.\" $OpenLDAP$
|
.\" $OpenLDAP$
|
||||||
.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
|
.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
|
||||||
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ber_int_t, ber_len_t, ber_tag_t \- LBER types
|
ber_int_t, ber_uint_t, ber_len_t, ber_slen_t, ber_tag_t \- LBER types
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.ft B
|
.ft B
|
||||||
@ -13,9 +13,18 @@ ber_int_t, ber_len_t, ber_tag_t \- LBER types
|
|||||||
.LP
|
.LP
|
||||||
.nf
|
.nf
|
||||||
.ft B
|
.ft B
|
||||||
typedef impl_int_t ber_int_t;
|
|
||||||
typedef impl_len_t ber_len_t;
|
|
||||||
typedef impl_tag_t ber_tag_t;
|
typedef impl_tag_t ber_tag_t;
|
||||||
|
typedef impl_int_t ber_int_t;
|
||||||
|
typedef impl_uint_t ber_uint_t;
|
||||||
|
typedef impl_len_t ber_len_t;
|
||||||
|
typedef impl_slen_t ber_slen_t;
|
||||||
|
|
||||||
|
typedef struct berval {
|
||||||
|
ber_len_t bv_len;
|
||||||
|
char *bv_val;
|
||||||
|
} BerValue;
|
||||||
|
|
||||||
|
typedef struct berelement BerElement;
|
||||||
.ft
|
.ft
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
@ -25,16 +34,40 @@ The are basic types defined for use with the Lightweight BER library.
|
|||||||
.B ber_int_t
|
.B ber_int_t
|
||||||
is a signed integer of at least 32 bits. It is commonly equivalent to
|
is a signed integer of at least 32 bits. It is commonly equivalent to
|
||||||
.BR int .
|
.BR int .
|
||||||
|
.B ber_uint_t
|
||||||
|
is the unsigned variant of
|
||||||
|
.BR ber_int_t .
|
||||||
.LP
|
.LP
|
||||||
.B ber_len_t
|
.B ber_len_t
|
||||||
is a unsigned integer of at least 32 bits used to represent a length.
|
is a unsigned integer of at least 32 bits used to represent a length.
|
||||||
It is commonly equivalent to a
|
It is commonly equivalent to a
|
||||||
.BR size_t .
|
.BR size_t .
|
||||||
|
.B ber_slen_t
|
||||||
|
is the signed variant to
|
||||||
|
.BR ber_len_t .
|
||||||
.LP
|
.LP
|
||||||
.B ber_tag_t
|
.B ber_tag_t
|
||||||
is a unsigned integer of at least 32 bits used to represent a
|
is a unsigned integer of at least 32 bits used to represent a
|
||||||
BER tag. It is commonly equivalent to a
|
BER tag. It is commonly equivalent to a
|
||||||
.BR unsigned\ long .
|
.BR unsigned\ long .
|
||||||
|
.LP
|
||||||
|
The actual definitions of the integal impl_TYPE_t types are platform
|
||||||
|
specific.
|
||||||
|
.LP
|
||||||
|
.BR BerValue ,
|
||||||
|
commonly used as
|
||||||
|
.BR struct\ berval ,
|
||||||
|
is used to holds an arbitrary sequence of octets.
|
||||||
|
.B bv_val
|
||||||
|
points to
|
||||||
|
.B bv_len
|
||||||
|
octets.
|
||||||
|
.B bv_val
|
||||||
|
is not necessarly terminated by a NULL (zero) octet.
|
||||||
|
.LP
|
||||||
|
.B BerElement
|
||||||
|
is an opaque structure used to hold state information for LBER encoding
|
||||||
|
and decoding routines.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR lber-encode (3)
|
.BR lber-encode (3)
|
||||||
.BR lber-decode (3)
|
.BR lber-decode (3)
|
||||||
|
@ -9,10 +9,6 @@ ldap_get_values, ldap_get_values_len, ldap_count_values \- LDAP attribute value
|
|||||||
.ft B
|
.ft B
|
||||||
#include <ldap.h>
|
#include <ldap.h>
|
||||||
|
|
||||||
typedef struct berval {
|
|
||||||
unsigned long bv_len;
|
|
||||||
char *bv_val;
|
|
||||||
};
|
|
||||||
.LP
|
.LP
|
||||||
.ft B
|
.ft B
|
||||||
char **ldap_get_values(ld, entry, attr)
|
char **ldap_get_values(ld, entry, attr)
|
||||||
|
Loading…
Reference in New Issue
Block a user