]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/tools/mimic.c
misc cleanup
[openldap] / servers / slapd / tools / mimic.c
index 9f972115e2d5ef030abf500e3d29efede37b247a..387eef2988dd5b686fd7fd5da7fe56522390df79 100644 (file)
@@ -1,8 +1,24 @@
 /* $OpenLDAP$ */
-/*
- * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2003 The OpenLDAP Foundation.
+ * Portions Copyright 1998-2003 Kurt D. Zeilenga.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
+/* ACKNOWLEDGEMENTS:
+ * This work was initially developed by Kurt Zeilenga for inclusion
+ * in OpenLDAP Software.
  */
+
+
 /*
  * Mimic unused interfaces of slapd...
  * needed for linking.
@@ -38,6 +54,14 @@ send_ldap_disconnect( Operation      *op, SlapReply *rs )
        assert(0);
 }
 
+int
+slap_null_cb(
+    Operation  *op, SlapReply *rs
+)
+{
+       assert(0);
+}
+
 void
 slap_send_ldap_extended(
     Operation  *op, SlapReply *rs
@@ -117,6 +141,26 @@ int slap_sasl_config(
 }
 
 
+int connection_client_setup(
+       ber_socket_t s,
+       Listener *l,
+       ldap_pvt_thread_start_t *func,
+       void *arg )
+{
+       assert(0);
+       return 0;
+}
+
+void connection_client_enable( ber_socket_t s )
+{
+       assert(0);
+}
+
+void connection_client_stop( ber_socket_t s )
+{
+       assert(0);
+}
+
 void connection2anonymous( Connection *c )
 {
        assert(0);
@@ -236,31 +280,30 @@ int root_dse_info( Connection *conn, Entry **entry, const char **text )
        return -1;
 }
 
-struct runqueue_s syncrepl_rq;
-
-void init_syncrepl( )
+int slap_entry2mods( Entry *e, Modifications **mods, const char **text,
+                                        char *textbuf, size_t textlen )
 {
-       return;
+       return -1;
 }
 
-void* do_syncrepl( void *ctx, void *arg )
-{
-       return NULL;
-}
+volatile sig_atomic_t slapd_abrupt_shutdown;
 
-char** str2clist( char ***out, char *in, const char *brkstr )
+int slap_mods_check( Modifications *ml, int update, const char **text,
+                                       char *textbuf, size_t textlen, void *ctx )
 {
-       return NULL;
+       return -1;
 }
 
-void syncrepl_add_glue( syncinfo_t *si, LDAP *ld, Operation *op, Entry *e,
-                               Modifications *modlist, int syncstate, struct berval* syncUUID,
-                               struct berval* syncCookie )
+int slap_mods2entry( Modifications *mods, Entry **e, int repl_user,
+                                   int dup, const char **text, char *textbuf, size_t textlen )
 {
-       return;
+       return -1;
 }
 
-int slap_entry2mods( Entry *e, Modifications **mods, const char **text )
+int slap_mods_opattrs( Operation *op, Modifications *mods,
+                                          Modifications **modtail, const char **text,
+                                          char *textbuf, size_t textlen )
 {
        return -1;
 }
+