Code

plugin: Automatically prepend callback names with the plugin name.
[sysdb.git] / src / plugins / cname / dns.c
index d989e52bc4841fb4317317c86d92a3515f6966ae..b35ebf1666e662984d1aea372f3fd802ef259c05 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "sysdb.h"
 #include "core/plugin.h"
-#include "core/error.h"
+#include "utils/error.h"
 
 #include <assert.h>
 #include <string.h>
@@ -89,7 +93,7 @@ sdb_module_init(sdb_plugin_info_t *info)
        sdb_plugin_set_info(info, SDB_PLUGIN_INFO_VERSION, SDB_VERSION);
        sdb_plugin_set_info(info, SDB_PLUGIN_INFO_PLUGIN_VERSION, SDB_VERSION);
 
-       sdb_plugin_register_cname("cname::dns", sdb_dns_cname, NULL);
+       sdb_plugin_register_cname("main", sdb_dns_cname, NULL);
        return 0;
 } /* sdb_module_init */