Commit 0569bb17 authored by Matthieu Dorier's avatar Matthieu Dorier

client interface

parent 5a2d26ab
......@@ -8,6 +8,24 @@
extern "C" {
#endif
typedef struct remi_client* remi_client_t;
#define REMI_CLIENT_NULL ((remi_client_t)0)
int remi_client_init(margo_instance_id mid, remi_client_t* client);
int remi_client_finalize(remi_client_t client);
int remi_provider_handle_create(
remi_client_t client,
hg_addr_t addr,
uint16_t provider_id,
remi_provider_handle_t* handle);
int remi_provider_handle_ref_incr(remi_provider_handle_t handle);
int remi_provider_handle_release(remi_provider_handle_t handle);
int remi_shutdown_service(remi_client_t client, hg_addr_t addr);
#if defined(__cplusplus)
}
......
......@@ -20,6 +20,57 @@ extern "C" {
typedef struct remi_fileset* remi_fileset_t;
#define REMI_FILESET_NULL ((remi_fileset_t)0)
typedef void (*remi_fileset_callback_t)(remi_fileset_t, const char*, void*);
#define REMI_FILESET_CALLBACK_NULL ((remi_fileset_callback_t)0)
typedef void (*remi_metadata_callback_t)(remi_fileset_t, const char*, const char*, void*);
#define REMI_METADATA_CALLBACK_NULL ((remi_metadata_callback_t)0)
int remi_fileset_create(
const char* fileset_class,
const char* fileset_root,
remi_fileset_t* fileset);
int remi_fileset_free(remi_fileset_t fileset);
int remi_fileset_get_class(
remi_fileset_t fileset,
char* buf,
size_t* size);
int remi_fileset_get_root(
remi_fileset_t fileset,
char* buf,
size_t* size);
int remi_fileset_register_file(
remi_fileset_t fileset,
const char* filename);
int remi_fileset_deregister_file(
remi_fileset_t fileset,
const char* filename);
int remi_fileset_foreach_file(
remi_fileset_t fileset,
remi_fileset_callback_t callback,
void* uargs);
int remi_fileset_register_metadata(
remi_fileset_t fileset,
const char* key,
const char* value);
int remi_fileset_deregister_metadata(
remi_fileset_t fileset,
const char* key,
const char* value);
int remi_fileset_foreach_metadata(
remi_fileset_t fileset,
remi_metadata_callback_t callback,
void* uargs);
#if defined(__cplusplus)
}
#endif
......
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