repl_add.c 724 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. #include "slapi-plugin.h"
  13. #include "repl.h"
  14. /* Add Operation Plugin Functions for legacy replication plugin */
  15. int
  16. legacy_preop_add( Slapi_PBlock *pb )
  17. {
  18. return legacy_preop( pb, "legacy_preop_add", OP_ADD );
  19. }
  20. int
  21. legacy_bepreop_add( Slapi_PBlock *pb )
  22. {
  23. int rc= 0; /* OK */
  24. return rc;
  25. }
  26. int
  27. legacy_postop_add( Slapi_PBlock *pb )
  28. {
  29. return legacy_postop( pb, "legacy_postop_add", OP_ADD );
  30. }