#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.
*/
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 );