mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
added slapi_backend_set_pb
This commit is contained in:
parent
17f95a3fd3
commit
cb61800ac6
2 changed files with 12 additions and 0 deletions
|
|
@ -1130,6 +1130,17 @@ slapi_free_search_results_internal( Slapi_PBlock *pb )
|
|||
#endif /* defined(LDAP_SLAPI) */
|
||||
}
|
||||
|
||||
/*
|
||||
* Internal API to prime a Slapi_PBlock with a Backend.
|
||||
*/
|
||||
void slapi_backend_set_pb( Slapi_PBlock *pb, Backend *be )
|
||||
{
|
||||
#if defined(LDAP_SLAPI)
|
||||
slapi_pblock_set(pb, SLAPI_BACKEND, (void *)be);
|
||||
slapi_pblock_set(pb, SLAPI_BE_TYPE, (void *)be->bd_info->bi_type);
|
||||
#endif /* defined(LDAP_SLAPI) */
|
||||
}
|
||||
|
||||
/*
|
||||
* Internal API to prime a Slapi_PBlock with a Connection.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ int slapi_audit_init_header( Connection *conn, Operation *op,
|
|||
int slapi_audit_send_record( Slapi_PBlock *pb, Connection *conn,
|
||||
Operation *op, int rc);
|
||||
|
||||
void slapi_backend_set_pb( Slapi_PBlock *pb, Backend *be );
|
||||
void slapi_connection_set_pb( Slapi_PBlock *pb, Connection *conn );
|
||||
void slapi_operation_set_pb( Slapi_PBlock *pb, Operation *op );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue