#ifndef RLX_NODE_H
#define RLX_NODE_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#define RLX_NODE_OK 0
#define RLX_NODE_ERR_BUSY (-1)
#define RLX_NODE_ERR_ARG (-2)
#define RLX_NODE_ERR_CONFIG (-3)
#define RLX_NODE_ERR_SPAWN (-4)
#define RLX_NODE_ERR_MODE (-5)
int rlx_node_start(int rank, int world, const char *peers, const char *device,
const char *mode);
int rlx_node_status(char *buf, size_t cap);
int rlx_node_stop(void);
int rlx_node_last_error(char *buf, size_t cap);
const char *rlx_node_platform(void);
#ifdef __cplusplus
}
#endif
#endif