Commit e36e2a93 authored by Jonathan Jenkins's avatar Jonathan Jenkins

wrap extern "C" around lib

parent ee45ef1b
......@@ -11,6 +11,10 @@
#include <ch-placement.h>
#include <builder.h>
#ifdef __cplusplus
extern "C" {
#endif
/* define to enable support for experimental CRUSH VRING bucket type */
#undef CH_ENABLE_CRUSH_VRING
......@@ -21,6 +25,10 @@
struct ch_placement_instance* ch_placement_initialize_crush(struct crush_map *map, __u32 *weight, int n_weight);
#ifdef __cplusplus
}
#endif
#endif /* CH_PLACEMENT_CRUSH_H */
/*
......
......@@ -10,6 +10,10 @@
#include <stdint.h>
#include <ch-placement.h>
#ifdef __cplusplus
extern "C" {
#endif
/* describes an object */
struct obj
{
......@@ -36,6 +40,10 @@ void oid_sort(struct obj* objs, unsigned int objs_count);
void oid_randomize(struct obj* objs, unsigned int objs_count, unsigned int seed);
#ifdef __cplusplus
}
#endif
#endif /* OID_GEN_H */
/*
......
......@@ -9,6 +9,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/* maximum replication factor allowed by library */
#define CH_MAX_REPLICATION 5
......@@ -37,8 +41,11 @@ void ch_placement_create_striped(
uint64_t *oids,
unsigned long *sizes);
#endif /* CH_PLACEMENT_H */
#ifdef __cplusplus
}
#endif
#endif /* CH_PLACEMENT_H */
/*
* Local variables:
* c-indent-level: 4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment