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

#ifndef MOBJECT_SERVER_H
#define MOBJECT_SERVER_H

10
#include <margo.h>
11 12 13
/* server-side utilities and routines.  Clients are looking for either
 * libmobject-store.h or librados-mobject-store.h */

14 15 16 17
#define MOBJECT_SERVER_GROUP_NAME "mobject-store-servers"

int mobject_server_init(margo_instance_id mid);

18 19 20
/**
 * Start a mobject server instance
 *
21
 * @param[in] mid
22 23
 * @param[in poolname
 * @returns 0 on success, negative error code on failure */
24
int mobject_server_register(margo_instance_id mid, const char *poolname);
25

26
void mobject_server_shutdown(margo_instance_id mid);
27 28

#endif