Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
remi
Commits
84a17b05
Commit
84a17b05
authored
Aug 07, 2018
by
Matthieu Dorier
Browse files
done with interface
parent
0569bb17
Changes
5
Hide whitespace changes
Inline
Side-by-side
include/remi/remi-client.h
View file @
84a17b05
...
...
@@ -11,6 +11,9 @@ extern "C" {
typedef
struct
remi_client
*
remi_client_t
;
#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_finalize
(
remi_client_t
client
);
...
...
include/remi/remi-common.h
View file @
84a17b05
#ifndef __REMI_COMMON_H
#define __REMI_COMMON_H
#include
<margo.h>
#if defined(__cplusplus)
extern
"C"
{
#endif
...
...
include/remi/remi-server.h
View file @
84a17b05
...
...
@@ -2,18 +2,33 @@
#define __REMI_SERVER_H
#include
<remi/remi-common.h>
#include
<margo.h>
#if defined(__cplusplus)
extern
"C"
{
#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
;
#define REMI_PROVIDER_NULL ((remi_provider_t)0)
typedef
void
(
*
remi_migration_callback_t
)(
remi_provider_t
,
remi_fileset_t
,
void
*
);
#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)
}
#endif
...
...
src/remi-client.cpp
View file @
84a17b05
#include
"remi/remi-client.h"
src/remi-server.cpp
View file @
84a17b05
#include
"remi/remi-server.h"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment