1 .TH LDAP_PARSE_VLV_CONTROL 3 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldap_parse_vlv_control \- Decode the information returned from a search operation that used a VLV (virtual list view) control
8 OpenLDAP LDAP (libldap, -lldap)
15 int ldap_parse_vlv_control( ld, ctrlp, target_posp, list_countp, contextp, errcodep )
19 unsigned long *target_posp, *list_countp;
20 struct berval **contextp;
24 .B ldap_parse_vlv_control
25 is used to decode the information returned from a search operation that used a
26 VLV (virtual list view)control. It takes a null terminated array of LDAPControl
27 structures, usually obtained by a call to the
28 .BR ldap_parse_result function,
29 a \fItarget_pos\fP which points to the list index of the target entry. If
30 this parameter is NULL, the target position is not returned. The index returned
31 is an approximation of the position of the target entry. It is
32 not guaranteed to be exact. The parameter \fIlist_countp\fP points to
33 the server's estimate of the size of the list. If this parameter is NULL, the
34 size is not returned. \fIcontextp\fP is a pointer to the address of a berval
35 structure that contains a server-generated context identifier if server returns
36 one. If server does not return a context identifier, the server returns a NULL
37 in this parameter. If this parameter is set to NULL, the context identifier is
38 not returned. You should use this returned context in the next call to
39 create a VLV control. When the berval structure is no longer needed, you should
40 free the memory by calling the \fIber_bvfree function.e\fP
41 \fIerrcodep\fP is an output parameter, which points to the result code returned
42 by the server. If this parameter is NULL, the result code is not returned.
45 ldap.h for a list of possible return codes.