Commit 84a17b05 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

done with interface

parent 0569bb17
...@@ -11,6 +11,9 @@ extern "C" { ...@@ -11,6 +11,9 @@ extern "C" {
typedef struct remi_client* remi_client_t; typedef struct remi_client* remi_client_t;
#define REMI_CLIENT_NULL ((remi_client_t)0) #define REMI_CLIENT_NULL ((remi_client_t)0)
typedef struct remi_provider_handle* remi_provider_handle_t;
#define REMI_PROVIDER_HANDLE_NULL ((remi_provider_handle_t)0)
int remi_client_init(margo_instance_id mid, remi_client_t* client); int remi_client_init(margo_instance_id mid, remi_client_t* client);
int remi_client_finalize(remi_client_t client); int remi_client_finalize(remi_client_t client);
......
#ifndef __REMI_COMMON_H #ifndef __REMI_COMMON_H
#define __REMI_COMMON_H #define __REMI_COMMON_H
#include <margo.h>
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif
......
...@@ -2,18 +2,33 @@ ...@@ -2,18 +2,33 @@
#define __REMI_SERVER_H #define __REMI_SERVER_H
#include <remi/remi-common.h> #include <remi/remi-common.h>
#include <margo.h>
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif
#define REMI_ABT_POOL_DEFAULT ABT_POOL_NULL
#define REMI_PROVIDER_ID_DEFAULT 1
#define REMI_PROVIDER_IGNORE NULL
typedef struct remi_provider* remi_provider_t; typedef struct remi_provider* remi_provider_t;
#define REMI_PROVIDER_NULL ((remi_provider_t)0) #define REMI_PROVIDER_NULL ((remi_provider_t)0)
typedef void (*remi_migration_callback_t)(remi_provider_t, remi_fileset_t, void*); typedef void (*remi_migration_callback_t)(remi_provider_t, remi_fileset_t, void*);
#define REMI_MIGRATION_CALLBACK_NULL ((remi_migration_callback_t)0) #define REMI_MIGRATION_CALLBACK_NULL ((remi_migration_callback_t)0)
int remi_provider_register(
margo_instance_id mid,
uint16_t provider_id,
ABT_pool pool,
remi_provider_t* provider);
int remi_provider_add_migration_class(
remi_provider_t provider,
const char* class_name,
remi_migration_callback_t callback,
void* uargs);
#if defined(__cplusplus) #if defined(__cplusplus)
} }
#endif #endif
......
#include "remi/remi-client.h"
#include "remi/remi-server.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