visitor-args.h 740 Bytes
Newer Older
1 2 3 4 5
#ifndef __SERVER_VISITOR_ARGS_H
#define __SERVER_VISITOR_ARGS_H

#include <margo.h>
#include "libmobject-store.h"
6
#include "src/server/mobject-server-context.h"
7 8 9 10 11

#ifdef __cplusplus
extern "C" {
#endif

Matthieu Dorier's avatar
Matthieu Dorier committed
12 13 14 15 16
typedef enum {
    MOBJECT_ADDR_STRING,
    MOBJECT_ADDR_HANDLE
} addr_str_type_t ;

17
typedef struct {
18 19 20
	const char*                    object_name;
	const char*                    pool_name;
    struct mobject_server_context* srv_ctx;
Matthieu Dorier's avatar
Matthieu Dorier committed
21 22 23 24
    union {
        const char* as_string;
        hg_addr_t   as_handle;
    } client_addr;
25
	hg_bulk_t                      bulk_handle;
Matthieu Dorier's avatar
Matthieu Dorier committed
26
    addr_str_type_t                client_addr_type;
27 28 29 30 31 32 33 34 35
} server_visitor_args;

typedef server_visitor_args* server_visitor_args_t;

#ifdef __cplusplus
}
#endif

#endif