2 * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
15 #include <ac/socket.h>
16 #include <ac/string.h>
23 ldap_first_message( LDAP *ld, LDAPMessage *chain )
25 return( ld == NULL || chain == NULLMSG
31 ldap_next_message( LDAP *ld, LDAPMessage *msg )
33 if ( ld == NULL || msg == NULLMSG || msg->lm_chain == NULL ) {
37 return( msg->lm_chain );
42 ldap_count_messages( LDAP *ld, LDAPMessage *chain )
50 for ( i = 0; chain != NULL; chain = chain->lm_chain ) {