Back to index

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

Go to the source code of this file.

Functions

LDAPMessage * ldap_delete_result_entry (LDAPMessage **list, LDAPMessage *e)
void ldap_add_result_entry (LDAPMessage **list, LDAPMessage *e)

Function Documentation

void ldap_add_result_entry ( LDAPMessage **  list,
LDAPMessage *  e 
)

Definition at line 74 of file reslist.c.

{
       e->lm_chain = *list;
       *list = e;
}

Here is the call graph for this function:

LDAPMessage* ldap_delete_result_entry ( LDAPMessage **  list,
LDAPMessage *  e 
)

Definition at line 54 of file reslist.c.

{
       LDAPMessage   *tmp, *prev = NULL;

       for ( tmp = *list; tmp != NULL && tmp != e; tmp = tmp->lm_chain )
              prev = tmp;

       if ( tmp == NULL )
              return( NULL );

       if ( prev == NULL )
              *list = tmp->lm_chain;
       else
              prev->lm_chain = tmp->lm_chain;
       tmp->lm_chain = NULL;

       return( tmp );
}