windows_prot_private.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 "repl5_prot_private.h"
  13. #ifndef _WINDOWS_PROT_PRIVATE_H_
  14. #define _WINDOWS_PROT_PRIVATE_H_
  15. #define ACQUIRE_SUCCESS 101
  16. #define ACQUIRE_REPLICA_BUSY 102
  17. #define ACQUIRE_FATAL_ERROR 103
  18. #define ACQUIRE_CONSUMER_WAS_UPTODATE 104
  19. #define ACQUIRE_TRANSIENT_ERROR 105
  20. #define PROTOCOL_TERMINATION_NORMAL 301
  21. #define PROTOCOL_TERMINATION_ABNORMAL 302
  22. #define PROTOCOL_TERMINATION_NEEDS_TOTAL_UPDATE 303
  23. #define RESUME_DO_TOTAL_UPDATE 401
  24. #define RESUME_DO_INCREMENTAL_UPDATE 402
  25. #define RESUME_TERMINATE 403
  26. #define RESUME_SUSPEND 404
  27. /* Backoff timer settings for reconnect */
  28. #define PROTOCOL_BACKOFF_MINIMUM 3 /* 3 seconds */
  29. #define PROTOCOL_BACKOFF_MAXIMUM (60 * 5) /* 5 minutes */
  30. /* Backoff timer settings for replica busy reconnect */
  31. #define PROTOCOL_BUSY_BACKOFF_MINIMUM PROTOCOL_BACKOFF_MINIMUM
  32. #define PROTOCOL_BUSY_BACKOFF_MAXIMUM PROTOCOL_BUSY_BACKOFF_MINIMUM
  33. /* protocol related functions */
  34. CSN *get_current_csn(Slapi_DN *replarea_sdn);
  35. char* protocol_response2string (int response);
  36. void windows_dirsync_inc_run(Private_Repl_Protocol *prp);
  37. ConnResult windows_replay_update(Private_Repl_Protocol *prp, slapi_operation_parameters *op);
  38. int windows_process_total_entry(Private_Repl_Protocol *prp,Slapi_Entry *e);
  39. PRBool windows_ignore_error_and_keep_going(int error);
  40. #endif /* _REPL5_PROT_PRIVATE_H_ */