mobject-server-context.h 907 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
/*
 * (C) 2017 The University of Chicago
 * 
 * See COPYRIGHT in top-level directory.
 */
#ifndef __SERVER_MOBJECT_CONTEXT_H
#define __SERVER_MOBJECT_CONTEXT_H

#include <margo.h>
//#include <sds-keyval.h>
11
#include <bake-client.h>
12
#include <sdskv-client.h>
13 14 15 16 17 18 19 20 21 22
#include <ssg-mpi.h>

#ifdef __cplusplus
extern "C" {
#endif

struct mobject_server_context
{
    /* margo, bake, sds-keyval, ssg state */
    margo_instance_id mid;
23
    uint16_t provider_id;
24 25
    ABT_pool pool;
    /* ssg-related data */
26
    ssg_group_id_t gid;
27 28 29
    /* bake-related data */
    bake_provider_handle_t bake_ph;
    bake_target_id_t bake_tid;
30 31 32 33 34 35
    /* sdskv-related data */
    sdskv_provider_handle_t sdskv_ph;
    sdskv_database_id_t oid_db_id;
    sdskv_database_id_t name_db_id;
    sdskv_database_id_t segment_db_id;
    sdskv_database_id_t omap_db_id;
36
    /* other data */
37 38 39 40 41 42 43 44
    int ref_count;
};

#ifdef __cplusplus
}
#endif

#endif