Commit cba9bc07 authored by Matthieu Dorier's avatar Matthieu Dorier

making the library usable with C++ programs

parent 2ce9cf1d
......@@ -11,6 +11,10 @@
#include "margo.h"
#include "bake-bulk.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Obtain identifying information for a bake target through the provided
* remote mercury address.
......@@ -150,4 +154,8 @@ int bake_shutdown_service(bake_target_id_t bti);
int bake_bulk_noop(
bake_target_id_t bti);
#ifdef __cplusplus
}
#endif
#endif /* __BAKE_BULK__CLIENT_H */
......@@ -11,6 +11,10 @@
#include <libpmemobj.h>
#include "bake-bulk.h"
#ifdef __cplusplus
extern "C" {
#endif
struct bake_bulk_root
{
bake_target_id_t target_id;
......@@ -43,4 +47,8 @@ void bake_server_register(
*/
struct bake_pool_info *bake_server_makepool(
const char *poolname);
#ifdef __cplusplus
}
#endif
#endif /* __BAKE_BULK_SERVER_H */
......@@ -9,7 +9,11 @@
#include <uuid/uuid.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* Persistent, universal, opaque identifier for a BAKE target.
* Remains constant if instance is opened, closed, or migrated.
......@@ -233,6 +237,11 @@ bake_return_t bake_bulk_region_deprecate(
bake_return_t bake_bulk_gc(
bake_instance_t *target,
bake_request_t *req);
#endif
#ifdef __cplusplus
}
#endif
#endif /* __BAKE_BULK_H */
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