#include <corosync/corotypes.h>
#include <corosync/hdb.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @addtogroup confdb_corosync
*
confdb_handle_t handle,
const void *context);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* COROSYNC_CONFDB_H_DEFINED */
#include <sys/socket.h>
#include <corosync/corotypes.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern cs_error_t
coroipcc_service_connect (
const char *socket_name,
void *res_msg,
size_t res_len);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* COROIPCC_H_DEFINED */
#include <stdlib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct iovec;
typedef int (*coroipcs_init_fn_lvalue) (void *conn);
int revent,
void *context);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* COROIPCS_H_DEFINED */
#include <netinet/in.h>
#include <corosync/corotypes.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @addtogroup cpg_corosync
*
void *msg,
size_t msg_len);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* COROSYNC_CPG_H_DEFINED */
#include <syslog.h>
#include <pthread.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* All of the LOGSYS_MODE's can be ORed together for combined behavior
*
__FILE__, __LINE__, LOGSYS_TAG_TRACE8, format, ##args);\
} while(0)
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LOGSYS_H_DEFINED */
#include <netinet/in.h>
#include <corosync/corotypes.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @defgroup corosync Other API services provided by corosync
*/
unsigned int *member_list,
size_t *member_list_entries);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* COROSYNC_EVS_H_DEFINED */
#include <corosync/hdb.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int lcr_ifact_reference (
hdb_handle_t *handle,
const char *iface_name,
int lcr_ifact_release (
hdb_handle_t handle);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LCR_IFACT_H_DEFINED */
#include <sys/types.h>
#include <netinet/in.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @defgroup corosync Other API services provided by corosync
*/
unsigned int msg_count,
unsigned int msg_size);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* COROSYNC_PLOAD_H_DEFINED */
#include <corosync/corotypes.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef uint64_t quorum_handle_t;
typedef struct {
quorum_handle_t handle,
const void **context);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* COROSYNC_QUORUM_H_DEFINED */
#include <corosync/hdb.h>
#include <pthread.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef void * poll_timer_handle;
hdb_handle_t poll_create (void);
int poll_stop (
hdb_handle_t handle);
-#ifdef COMPILE_OUT
-void poll_print_state (
- hdb_handle_t handle, int fd);
+#ifdef __cplusplus
+}
#endif
#endif /* POLL_H_DEFINED */
#include <sys/socket.h>
#include <netinet/in.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef SO_NOSIGPIPE
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
return (addr->family == 0);
}
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef TOTEMPG_H_DEFINED
#define TOTEMPG_H_DEFINED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <netinet/in.h>
#include "totem.h"
#include "coropoll.h"
extern int totempg_ring_reenable (void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* TOTEMPG_H_DEFINED */
#ifndef COROSYNC_VOTEQUORUM_H_DEFINED
#define COROSYNC_VOTEQUORUM_H_DEFINED
-typedef uint64_t votequorum_handle_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
+typedef uint64_t votequorum_handle_t;
#define VOTEQUORUM_MAX_QDISK_NAME_LEN 255
votequorum_handle_t handle,
void *context);
+#ifdef __cplusplus
+}
+#endif
#endif /* COROSYNC_VOTEQUORUM_H_DEFINED */