remi-client.h 992 Bytes
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1
2
3
4
5
6
7
8
9
10
#ifndef __REMI_CLIENT_H
#define __REMI_CLIENT_H

#include <remi/remi-common.h>
#include <margo.h>

#if defined(__cplusplus)
extern "C" {
#endif

Matthieu Dorier's avatar
Matthieu Dorier committed
11
12
13
typedef struct remi_client* remi_client_t;
#define REMI_CLIENT_NULL ((remi_client_t)0)

Matthieu Dorier's avatar
Matthieu Dorier committed
14
15
16
typedef struct remi_provider_handle* remi_provider_handle_t;
#define REMI_PROVIDER_HANDLE_NULL ((remi_provider_handle_t)0)

Matthieu Dorier's avatar
Matthieu Dorier committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
Matthieu Dorier's avatar
Matthieu Dorier committed
32

Matthieu Dorier's avatar
Matthieu Dorier committed
33
34
35
36
37
int remi_fileset_migrate(
        remi_provider_handle_t handle,
        remi_fileset_t fileset,
        int flag);

Matthieu Dorier's avatar
Matthieu Dorier committed
38
39
40
41
42
#if defined(__cplusplus)
}
#endif

#endif