From 07db95dcf0d3c065b79d805ab81ef2e9ed328dce Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 28 Jul 2009 23:01:11 +0000 Subject: Some skeleton bits for plugin code git-svn-id: http://internal-svn-server/svn/network/slapi-suffix@1507 96c7dce7-e4ff-0310-afa0-05b99c2e9643 --- plugin/plugin.h | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to 'plugin/plugin.h') diff --git a/plugin/plugin.h b/plugin/plugin.h index 400dc6f..cdd15ad 100644 --- a/plugin/plugin.h +++ b/plugin/plugin.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, Stefan Walter + * Copyright (c) 2009, Stefan Walter * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -43,7 +43,7 @@ #include "include/slapi-plugin.h" #endif -#define PLUGIN_NAME "slapi-dnsnotify" +#define PLUGIN_NAME "slapi-suffix" /* --------------------------------------------------------------------- * LOGGING @@ -80,26 +80,13 @@ char* trim (char *data); void lowercase (char *data); /* ---------------------------------------------------------------------- - * AUTO SERIAL + * SUFFIX */ -int autoserial_init (void); -void autoserial_destroy (void); -int autoserial_config (const char *name, const char *value); -void autoserial_post_add (const char *dn); -void autoserial_post_modify (const char *dn, LDAPMod **mods); -void autoserial_post_modrdn (const char *odn, const char *ndn); -void autoserial_post_delete (const char *dn); - -/* ---------------------------------------------------------------------- - * DNS NOTIFY - */ - -int dnsnotify_init (void); -void dnsnotify_destroy (void); -int dnsnotify_config (const char *name, const char *value); -void dnsnotify_post_add (const char *dn); -void dnsnotify_post_modify (const char *dn, LDAPMod **mods); - +int suffix_init (void); +void suffix_destroy (void); +int suffix_config (const char *name, const char *value); +void suffix_pre_add (const char *dn); +void suffix_pre_modify (const char *dn, LDAPMod **mods); #endif /*PLUGIN_H_*/ -- cgit v1.2.3