git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2148 fd59a12c-fef9-0310-b244-a6a79926bd2f
@@ -37,6 +37,10 @@
#include <corosync/corotypes.h>
#include <corosync/hdb.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @addtogroup confdb_corosync
*
@@ -283,4 +287,8 @@ cs_error_t confdb_context_set (
confdb_handle_t handle,
const void *context);
+}
#endif /* COROSYNC_CONFDB_H_DEFINED */
@@ -41,6 +41,10 @@
#include <sys/socket.h>
extern cs_error_t
coroipcc_service_connect (
const char *socket_name,
@@ -106,4 +110,9 @@ coroipcc_zcb_msg_send_reply_receive (
void *res_msg,
size_t res_len);
#endif /* COROIPCC_H_DEFINED */
#include <stdlib.h>
struct iovec;
typedef int (*coroipcs_init_fn_lvalue) (void *conn);
@@ -110,4 +114,8 @@ extern int coroipcs_handler_dispatch (
int revent,
void *context);
#endif /* COROIPCS_H_DEFINED */
#include <netinet/in.h>
* @addtogroup cpg_corosync
@@ -201,4 +205,8 @@ cs_error_t cpg_zcb_mcast_joined (
void *msg,
size_t msg_len);
#endif /* COROSYNC_CPG_H_DEFINED */
@@ -42,6 +42,10 @@
#include <syslog.h>
#include <pthread.h>
/*
* All of the LOGSYS_MODE's can be ORed together for combined behavior
@@ -370,4 +374,8 @@ do { \
__FILE__, __LINE__, LOGSYS_TAG_TRACE8, format, ##args);\
} while(0)
#endif /* LOGSYS_H_DEFINED */
* @defgroup corosync Other API services provided by corosync
*/
@@ -165,4 +169,8 @@ cs_error_t evs_membership_get (
unsigned int *member_list,
size_t *member_list_entries);
#endif /* COROSYNC_EVS_H_DEFINED */
@@ -33,6 +33,10 @@
int lcr_ifact_reference (
hdb_handle_t *handle,
const char *iface_name,
@@ -43,4 +47,9 @@ int lcr_ifact_reference (
int lcr_ifact_release (
hdb_handle_t handle);
#endif /* LCR_IFACT_H_DEFINED */
#include <sys/types.h>
@@ -97,4 +101,9 @@ unsigned int pload_start (
unsigned int msg_count,
unsigned int msg_size);
#endif /* COROSYNC_PLOAD_H_DEFINED */
@@ -36,6 +36,10 @@
typedef uint64_t quorum_handle_t;
typedef struct {
@@ -109,4 +113,8 @@ cs_error_t quorum_context_get (
quorum_handle_t handle,
const void **context);
#endif /* COROSYNC_QUORUM_H_DEFINED */
typedef void * poll_timer_handle;
hdb_handle_t poll_create (void);
@@ -85,9 +89,8 @@ int poll_run (
int poll_stop (
-#ifdef COMPILE_OUT
-void poll_print_state (
- hdb_handle_t handle, int fd);
#endif
#endif /* POLL_H_DEFINED */
@@ -40,6 +40,10 @@
#ifdef SO_NOSIGPIPE
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
@@ -93,4 +97,8 @@ static inline int totemip_zero_check(const struct totem_ip_address *addr)
return (addr->family == 0);
}
#ifndef TOTEMPG_H_DEFINED
#define TOTEMPG_H_DEFINED
#include "totem.h"
#include "coropoll.h"
@@ -149,4 +153,8 @@ extern int totempg_crypto_set (unsigned int type);
extern int totempg_ring_reenable (void);
#endif /* TOTEMPG_H_DEFINED */
@@ -35,8 +35,11 @@
#ifndef COROSYNC_VOTEQUORUM_H_DEFINED
#define COROSYNC_VOTEQUORUM_H_DEFINED
-typedef uint64_t votequorum_handle_t;
+typedef uint64_t votequorum_handle_t;
#define VOTEQUORUM_MAX_QDISK_NAME_LEN 255
@@ -209,4 +212,7 @@ cs_error_t votequorum_context_set (
votequorum_handle_t handle,
#endif /* COROSYNC_VOTEQUORUM_H_DEFINED */