/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2009 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
#include "slap.h"
+#include "config.h"
+
#include "shell.h"
-#include "external.h"
int
shell_back_initialize(
int
shell_back_db_init(
- Backend *be
+ Backend *be,
+ ConfigReply *cr
)
{
struct shellinfo *si;
int
shell_back_db_destroy(
- Backend *be
+ Backend *be,
+ ConfigReply *cr
)
{
free( be->be_private );
#if SLAPD_SHELL == SLAPD_MOD_DYNAMIC
-int
-init_module( int argc, char *argv[] )
-{
- BackendInfo bi;
-
- memset( &bi, '\0', sizeof( bi ) );
- bi.bi_type = "shell";
- bi.bi_init = shell_back_initialize;
-
- backend_add( &bi );
-
- return 0;
-}
+/* conditionally define the init_module() function */
+SLAP_BACKEND_INIT_MODULE( shell )
-#endif /* SLAPD_SHELL */
+#endif /* SLAPD_SHELL == SLAPD_MOD_DYNAMIC */