oliveiradan / 389-ds-base

Forked from 389-ds-base 5 years ago
Clone

b6d3ba7 pass the plugin config entry to the plugin init function

Authored and Committed by rmeggins 12 years ago
    pass the plugin config entry to the plugin init function
    
    A plugin init function can get the plugin config entry (that is, its own
    config entry) by using the pblock parameter SLAPI_PLUGIN_CONFIG_ENTRY
    int
    my_plugin_init(Slapi_PBlock *pb)
    {
      Slapi_Entry *my_config_entry = NULL;
      slapi_pblock_get(pb, SLAPI_PLUGIN_CONFIG_ENTRY, &my_config_entry);
    Reviewed by: nkinder, nhosoi (Thanks!)
    
        
file modified
+1 -0