/branches/SN-NG4-svngui/db4/dbinc_auto/repmgr_ext.h

https://gitlab.com/OpenSourceMirror/sourcenav · C Header · 145 lines · 141 code · 3 blank · 1 comment · 0 complexity · 11d1b6b157c1b6661db2d931e734b3a4 MD5 · raw file

  1. /* DO NOT EDIT: automatically built by dist/s_include. */
  2. #ifndef _repmgr_ext_h_
  3. #define _repmgr_ext_h_
  4. #if defined(__cplusplus)
  5. extern "C" {
  6. #endif
  7. void __repmgr_handshake_marshal __P((ENV *, __repmgr_handshake_args *, u_int8_t *));
  8. int __repmgr_handshake_unmarshal __P((ENV *, __repmgr_handshake_args *, u_int8_t *, size_t, u_int8_t **));
  9. void __repmgr_v2handshake_marshal __P((ENV *, __repmgr_v2handshake_args *, u_int8_t *));
  10. int __repmgr_v2handshake_unmarshal __P((ENV *, __repmgr_v2handshake_args *, u_int8_t *, size_t, u_int8_t **));
  11. void __repmgr_ack_marshal __P((ENV *, __repmgr_ack_args *, u_int8_t *));
  12. int __repmgr_ack_unmarshal __P((ENV *, __repmgr_ack_args *, u_int8_t *, size_t, u_int8_t **));
  13. void __repmgr_version_proposal_marshal __P((ENV *, __repmgr_version_proposal_args *, u_int8_t *));
  14. int __repmgr_version_proposal_unmarshal __P((ENV *, __repmgr_version_proposal_args *, u_int8_t *, size_t, u_int8_t **));
  15. void __repmgr_version_confirmation_marshal __P((ENV *, __repmgr_version_confirmation_args *, u_int8_t *));
  16. int __repmgr_version_confirmation_unmarshal __P((ENV *, __repmgr_version_confirmation_args *, u_int8_t *, size_t, u_int8_t **));
  17. int __repmgr_init_election __P((ENV *, int));
  18. int __repmgr_become_master __P((ENV *));
  19. int __repmgr_start __P((DB_ENV *, int, u_int32_t));
  20. int __repmgr_autostart __P((ENV *));
  21. int __repmgr_start_selector __P((ENV *));
  22. int __repmgr_close __P((ENV *));
  23. int __repmgr_set_ack_policy __P((DB_ENV *, int));
  24. int __repmgr_get_ack_policy __P((DB_ENV *, int *));
  25. int __repmgr_env_create __P((ENV *, DB_REP *));
  26. void __repmgr_env_destroy __P((ENV *, DB_REP *));
  27. int __repmgr_stop_threads __P((ENV *));
  28. int __repmgr_set_local_site __P((DB_ENV *, const char *, u_int, u_int32_t));
  29. int __repmgr_add_remote_site __P((DB_ENV *, const char *, u_int, int *, u_int32_t));
  30. void *__repmgr_msg_thread __P((void *));
  31. int __repmgr_handle_event __P((ENV *, u_int32_t, void *));
  32. int __repmgr_send __P((DB_ENV *, const DBT *, const DBT *, const DB_LSN *, int, u_int32_t));
  33. int __repmgr_sync_siteaddr __P((ENV *));
  34. int __repmgr_send_broadcast __P((ENV *, u_int, const DBT *, const DBT *, u_int *, u_int *));
  35. int __repmgr_send_one __P((ENV *, REPMGR_CONNECTION *, u_int, const DBT *, const DBT *, int));
  36. int __repmgr_is_permanent __P((ENV *, const DB_LSN *));
  37. int __repmgr_bust_connection __P((ENV *, REPMGR_CONNECTION *));
  38. void __repmgr_disable_connection __P((ENV *, REPMGR_CONNECTION *));
  39. int __repmgr_cleanup_connection __P((ENV *, REPMGR_CONNECTION *));
  40. REPMGR_SITE *__repmgr_find_site __P((ENV *, const char *, u_int));
  41. int __repmgr_pack_netaddr __P((ENV *, const char *, u_int, ADDRINFO *, repmgr_netaddr_t *));
  42. int __repmgr_getaddr __P((ENV *, const char *, u_int, int, ADDRINFO **));
  43. int __repmgr_add_site __P((ENV *, const char *, u_int, REPMGR_SITE **, u_int32_t));
  44. int __repmgr_add_site_int __P((ENV *, const char *, u_int, REPMGR_SITE **, int, int));
  45. int __repmgr_listen __P((ENV *));
  46. int __repmgr_net_close __P((ENV *));
  47. void __repmgr_net_destroy __P((ENV *, DB_REP *));
  48. int __repmgr_thread_start __P((ENV *, REPMGR_RUNNABLE *));
  49. int __repmgr_thread_join __P((REPMGR_RUNNABLE *));
  50. int __repmgr_set_nonblocking __P((socket_t));
  51. int __repmgr_wake_waiting_senders __P((ENV *));
  52. int __repmgr_await_ack __P((ENV *, const DB_LSN *));
  53. void __repmgr_compute_wait_deadline __P((ENV*, struct timespec *, db_timeout_t));
  54. int __repmgr_await_drain __P((ENV *, REPMGR_CONNECTION *, db_timeout_t));
  55. int __repmgr_alloc_cond __P((cond_var_t *));
  56. int __repmgr_free_cond __P((cond_var_t *));
  57. void __repmgr_env_create_pf __P((DB_REP *));
  58. int __repmgr_create_mutex_pf __P((mgr_mutex_t *));
  59. int __repmgr_destroy_mutex_pf __P((mgr_mutex_t *));
  60. int __repmgr_init __P((ENV *));
  61. int __repmgr_deinit __P((ENV *));
  62. int __repmgr_lock_mutex __P((mgr_mutex_t *));
  63. int __repmgr_unlock_mutex __P((mgr_mutex_t *));
  64. int __repmgr_signal __P((cond_var_t *));
  65. int __repmgr_wake_main_thread __P((ENV*));
  66. int __repmgr_writev __P((socket_t, db_iovec_t *, int, size_t *));
  67. int __repmgr_readv __P((socket_t, db_iovec_t *, int, size_t *));
  68. int __repmgr_select_loop __P((ENV *));
  69. void __repmgr_queue_destroy __P((ENV *));
  70. int __repmgr_queue_get __P((ENV *, REPMGR_MESSAGE **));
  71. int __repmgr_queue_put __P((ENV *, REPMGR_MESSAGE *));
  72. int __repmgr_queue_size __P((ENV *));
  73. void *__repmgr_select_thread __P((void *));
  74. int __repmgr_accept __P((ENV *));
  75. int __repmgr_compute_timeout __P((ENV *, db_timespec *));
  76. int __repmgr_check_timeouts __P((ENV *));
  77. int __repmgr_first_try_connections __P((ENV *));
  78. int __repmgr_connect_site __P((ENV *, u_int eid));
  79. int __repmgr_propose_version __P((ENV *, REPMGR_CONNECTION *));
  80. int __repmgr_read_from_site __P((ENV *, REPMGR_CONNECTION *));
  81. int __repmgr_write_some __P((ENV *, REPMGR_CONNECTION *));
  82. int __repmgr_stat_pp __P((DB_ENV *, DB_REPMGR_STAT **, u_int32_t));
  83. int __repmgr_stat_print_pp __P((DB_ENV *, u_int32_t));
  84. int __repmgr_site_list __P((DB_ENV *, u_int *, DB_REPMGR_SITE **));
  85. #ifndef HAVE_REPLICATION_THREADS
  86. int __repmgr_close __P((ENV *));
  87. #endif
  88. #ifndef HAVE_REPLICATION_THREADS
  89. int __repmgr_add_remote_site __P((DB_ENV *, const char *, u_int, int *, u_int32_t));
  90. #endif
  91. #ifndef HAVE_REPLICATION_THREADS
  92. int __repmgr_get_ack_policy __P((DB_ENV *, int *));
  93. #endif
  94. #ifndef HAVE_REPLICATION_THREADS
  95. int __repmgr_set_ack_policy __P((DB_ENV *, int));
  96. #endif
  97. #ifndef HAVE_REPLICATION_THREADS
  98. int __repmgr_set_local_site __P((DB_ENV *, const char *, u_int, u_int32_t));
  99. #endif
  100. #ifndef HAVE_REPLICATION_THREADS
  101. int __repmgr_site_list __P((DB_ENV *, u_int *, DB_REPMGR_SITE **));
  102. #endif
  103. #ifndef HAVE_REPLICATION_THREADS
  104. int __repmgr_start __P((DB_ENV *, int, u_int32_t));
  105. #endif
  106. #ifndef HAVE_REPLICATION_THREADS
  107. int __repmgr_stat_pp __P((DB_ENV *, DB_REPMGR_STAT **, u_int32_t));
  108. #endif
  109. #ifndef HAVE_REPLICATION_THREADS
  110. int __repmgr_stat_print_pp __P((DB_ENV *, u_int32_t));
  111. #endif
  112. #ifndef HAVE_REPLICATION_THREADS
  113. int __repmgr_handle_event __P((ENV *, u_int32_t, void *));
  114. #endif
  115. int __repmgr_schedule_connection_attempt __P((ENV *, u_int, int));
  116. void __repmgr_reset_for_reading __P((REPMGR_CONNECTION *));
  117. int __repmgr_new_connection __P((ENV *, REPMGR_CONNECTION **, socket_t, int));
  118. int __repmgr_new_site __P((ENV *, REPMGR_SITE**, const char *, u_int, int));
  119. void __repmgr_cleanup_netaddr __P((ENV *, repmgr_netaddr_t *));
  120. void __repmgr_iovec_init __P((REPMGR_IOVECS *));
  121. void __repmgr_add_buffer __P((REPMGR_IOVECS *, void *, size_t));
  122. void __repmgr_add_dbt __P((REPMGR_IOVECS *, const DBT *));
  123. int __repmgr_update_consumed __P((REPMGR_IOVECS *, size_t));
  124. int __repmgr_prepare_my_addr __P((ENV *, DBT *));
  125. u_int __repmgr_get_nsites __P((DB_REP *));
  126. void __repmgr_thread_failure __P((ENV *, int));
  127. char *__repmgr_format_eid_loc __P((DB_REP *, int, char *));
  128. char *__repmgr_format_site_loc __P((REPMGR_SITE *, char *));
  129. int __repmgr_repstart __P((ENV *, u_int32_t));
  130. int __repmgr_each_connection __P((ENV *, CONNECTION_ACTION, void *, int));
  131. int __repmgr_open __P((ENV *, void *));
  132. int __repmgr_join __P((ENV *, void *));
  133. int __repmgr_env_refresh __P((ENV *env));
  134. int __repmgr_share_netaddrs __P((ENV *, void *, u_int, u_int));
  135. int __repmgr_copy_in_added_sites __P((ENV *));
  136. int __repmgr_init_new_sites __P((ENV *, u_int, u_int));
  137. int __repmgr_check_host_name __P((ENV *, int));
  138. int __repmgr_failchk __P((ENV *));
  139. #if defined(__cplusplus)
  140. }
  141. #endif
  142. #endif /* !_repmgr_ext_h_ */