Index: plugin/conf_file.html =================================================================== --- plugin/conf_file.html (revision 33853) +++ plugin/conf_file.html (revision 33854) @@ -23,29 +23,24 @@ #include "../src_plugins/pluginname/conf_internal.c" -
-Define the file name (will be used twice) somewhere around the top of -the main source file, then in plugin init callback issue a conf_reg_file(): +Call librnd to register and unregister the intern:
-#define PLUGINNAME_CONF_FN "pluginname.conf" - int pplg_init_pluginname(void) { PCB_API_CHK_VER; - conf_reg_file(PLUGINNAME_CONF_FN, pluginname_conf_internal); + conf_reg_intern(pluginname_conf_internal); ...
-The conf_reg_file() call should be before the conf fields initialization. +The conf_reg_intern() call should be before the conf fields initialization. - - -
In the uninit callback of the plugin, insert the following line:
- conf_unreg_file(PLUGINNAME_CONF_FN, pluginname_conf_internal); + conf_unreg_intern(pluginname_conf_internal);