Defining Functions for Database 
Operations
This chapter explains how to write functions that perform database operations, such as exporting the directory, importing LDIF files, archiving, and restoring database archives.
In general, these functions must comply with the prototype specified in "Working with Parameter Blocks" on page  30 (in other words, the functions should pass a single Slapi_PBlock argument).