repl_modify.c 758 B

12345678910111213141516171819202122232425262728293031323334353637
  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. /* The modify operation plugin functions for the legacy replication plugin */
  15. int
  16. legacy_preop_modify( Slapi_PBlock *pb )
  17. {
  18. return legacy_preop( pb, "legacy_preop_modify", OP_MODIFY );
  19. }
  20. int
  21. legacy_bepreop_modify( Slapi_PBlock *pb )
  22. {
  23. int rc= 0; /* OK */
  24. return rc;
  25. }
  26. int
  27. legacy_postop_modify( Slapi_PBlock *pb )
  28. {
  29. return legacy_postop( pb, "legacy_postop_modify", OP_MODIFY );
  30. }