Back to index

openldap  2.4.31
Functions
messages.c File Reference
#include "portable.h"
#include <stdio.h>
#include <ac/stdlib.h>
#include <ac/socket.h>
#include <ac/string.h>
#include <ac/time.h>
#include "ldap-int.h"

Go to the source code of this file.

Functions

LDAPMessage * ldap_first_message (LDAP *ld, LDAPMessage *chain)
LDAPMessage * ldap_next_message (LDAP *ld, LDAPMessage *msg)
int ldap_count_messages (LDAP *ld, LDAPMessage *chain)
BerElement * ldap_get_message_ber (LDAPMessage *ld)

Function Documentation

int ldap_count_messages ( LDAP *  ld,
LDAPMessage *  chain 
)

Definition at line 50 of file messages.c.

{
       int    i;

       assert( ld != NULL );
       assert( LDAP_VALID( ld ) );

       for ( i = 0; chain != NULL; chain = chain->lm_chain ) {
              i++;
       }

       return( i );
}
LDAPMessage* ldap_first_message ( LDAP *  ld,
LDAPMessage *  chain 
)

Definition at line 30 of file messages.c.

{
       assert( ld != NULL );
       assert( LDAP_VALID( ld ) );
       assert( chain != NULL );

       return chain;
}

Here is the caller graph for this function:

BerElement* ldap_get_message_ber ( LDAPMessage *  ld)

Definition at line 65 of file messages.c.

{
       return ld->lm_ber;
}

Here is the caller graph for this function:

LDAPMessage* ldap_next_message ( LDAP *  ld,
LDAPMessage *  msg 
)

Definition at line 40 of file messages.c.

{
       assert( ld != NULL );
       assert( LDAP_VALID( ld ) );
       assert( msg != NULL );

       return msg->lm_chain;
}

Here is the caller graph for this function: