Motr  M0
spiel_ut_common.c File Reference
#include "lib/trace.h"
#include "spiel/ut/spiel_ut_common.h"
#include "spiel/spiel.h"
#include "ut/misc.h"
#include "ut/ut.h"
Include dependency graph for spiel_ut_common.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SPIEL
 
#define NAME(ext)   "ut_spiel" ext
 

Functions

static int m0_spiel__ut_rms_start (struct m0_reqh *reqh)
 
M0_INTERNAL int m0_spiel__ut_reqh_init (struct m0_spiel_ut_reqh *spl_reqh, const char *ep_addr)
 
M0_INTERNAL void m0_spiel__ut_reqh_fini (struct m0_spiel_ut_reqh *spl_reqh)
 
M0_INTERNAL int m0_spiel__ut_rpc_server_start (struct m0_rpc_server_ctx *rpc_srv, const char *ha_ep, const char *confdb_path)
 
M0_INTERNAL void m0_spiel__ut_rpc_server_stop (struct m0_rpc_server_ctx *rpc_srv)
 
M0_INTERNAL void m0_spiel__ut_init (struct m0_spiel *spiel, const char *confd_path, bool cmd_iface)
 
M0_INTERNAL void m0_spiel__ut_fini (struct m0_spiel *spiel, bool cmd_iface)
 

Variables

struct m0_spiel_ut_reqh ut_reqh
 
const char * confd_addr [] = { SERVER_ENDPOINT_ADDR, NULL }
 
const char * rm_addr = SERVER_ENDPOINT_ADDR
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SPIEL

Definition at line 23 of file spiel_ut_common.c.

◆ NAME

#define NAME (   ext)    "ut_spiel" ext

Function Documentation

◆ m0_spiel__ut_fini()

M0_INTERNAL void m0_spiel__ut_fini ( struct m0_spiel spiel,
bool  cmd_iface 
)

Definition at line 179 of file spiel_ut_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_spiel__ut_init()

M0_INTERNAL void m0_spiel__ut_init ( struct m0_spiel spiel,
const char *  confd_path,
bool  cmd_iface 
)

Definition at line 153 of file spiel_ut_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_spiel__ut_reqh_fini()

M0_INTERNAL void m0_spiel__ut_reqh_fini ( struct m0_spiel_ut_reqh spl_reqh)

Definition at line 97 of file spiel_ut_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_spiel__ut_reqh_init()

M0_INTERNAL int m0_spiel__ut_reqh_init ( struct m0_spiel_ut_reqh spl_reqh,
const char *  ep_addr 
)

Definition at line 44 of file spiel_ut_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_spiel__ut_rms_start()

static int m0_spiel__ut_rms_start ( struct m0_reqh reqh)
static

Definition at line 35 of file spiel_ut_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_spiel__ut_rpc_server_start()

M0_INTERNAL int m0_spiel__ut_rpc_server_start ( struct m0_rpc_server_ctx rpc_srv,
const char *  ha_ep,
const char *  confdb_path 
)

Definition at line 106 of file spiel_ut_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_spiel__ut_rpc_server_stop()

M0_INTERNAL void m0_spiel__ut_rpc_server_stop ( struct m0_rpc_server_ctx rpc_srv)

Definition at line 148 of file spiel_ut_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ confd_addr

const char* confd_addr[] = { SERVER_ENDPOINT_ADDR, NULL }

Definition at line 32 of file spiel_ut_common.c.

◆ rm_addr

const char* rm_addr = SERVER_ENDPOINT_ADDR

Definition at line 33 of file spiel_ut_common.c.

◆ ut_reqh

struct m0_spiel_ut_reqh ut_reqh

Definition at line 31 of file spiel_ut_common.c.