libmobject-store.c 908 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
 * (C) 2017 The University of Chicago
 * 
 * See COPYRIGHT in top-level directory.
 */

#include <margo.h>
#include <ssg.h>

#include "mobject-store.h"

struct mobject_store_handle
{
14
    int test;
15 16
};

17
int rados_create(rados_t *cluster, const char * const id)
18
{
19 20 21 22 23 24 25 26
    struct mobject_store_handle *cluster_handle;
    (void)id; /* XXX: id unused in mobject */

    /* allocate a new cluster handle and set some fields */
    cluster_handle = malloc(sizeof(*cluster_handle));
    if (!cluster_handle)
        return(-1); /* TODO: error codes */
    cluster_handle->test = 123;
27 28

    /* XXX find the SSG group ID for the mobject cluster group */
29 30

    return(0);
31 32
}

33
#if 0
34 35 36 37
int mobject_store_connect(mobject_store_t cluster)
{
    /* XXX ssg attach to mobject cluster group id */
}
38
#endif
39

40
void rados_shutdown(rados_t cluster)
41 42 43 44 45 46
{
    /* XXX ssg detatch from mobject cluster group id */

    /* XXX free handle */
}