Back to index

lightning-sunbird  0.9+nobinonly
Functions
message.c File Reference
#include "ldap-int.h"

Go to the source code of this file.

Functions

int LDAP_CALL ldap_msgid (LDAPMessage *lm)
int LDAP_CALL ldap_msgtype (LDAPMessage *lm)
LDAPMessage *LDAP_CALL ldap_first_message (LDAP *ld, LDAPMessage *chain)
LDAPMessage *LDAP_CALL ldap_next_message (LDAP *ld, LDAPMessage *msg)
int LDAP_CALL ldap_count_messages (LDAP *ld, LDAPMessage *chain)

Function Documentation

int LDAP_CALL ldap_count_messages ( LDAP *  ld,
LDAPMessage *  chain 
)

Definition at line 92 of file message.c.

{
       int    i;

       if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) {
              return( -1 );
       }

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

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

Definition at line 64 of file message.c.

{
       if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) {
              return( NULLMSG );          /* punt */
       }

       return( chain );
}

Here is the caller graph for this function:

int LDAP_CALL ldap_msgid ( LDAPMessage *  lm)

Definition at line 41 of file message.c.

{
       if ( !NSLDAPI_VALID_LDAPMESSAGE_POINTER( lm )) {
              return( -1 );
       }

       return( lm->lm_msgid );
}

Here is the caller graph for this function:

int LDAP_CALL ldap_msgtype ( LDAPMessage *  lm)

Definition at line 52 of file message.c.

{
       if ( !NSLDAPI_VALID_LDAPMESSAGE_POINTER( lm )) {
              return( -1 );
       }

       return( lm->lm_msgtype );
}

Here is the caller graph for this function:

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

Definition at line 76 of file message.c.

{
       if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) {
              return( NULLMSG );          /* punt */
       }

       if ( msg == NULLMSG || msg->lm_chain == NULLMSG ) {
              return( NULLMSG );
       }

       return( msg->lm_chain );
}

Here is the caller graph for this function: