Motr  M0
sd_common.h File Reference
Include dependency graph for sd_common.h:

Go to the source code of this file.

Data Structures

struct  fdmi_sd_ut_ctx
 
struct  test_rpc_env
 

Macros

#define __MOTR_FDMI_UT_FDMI_SD_COMMON_H__
 
#define _QUOTE(s)   #s
 
#define QUOTE(s)   _QUOTE(s)
 
#define M0_FDMI_UT_PATH(name)   QUOTE(M0_FDMI_UT_DIR) "/" name
 

Functions

void fdmi_serv_start_ut (const struct m0_filterc_ops *filterc_ops)
 
void fdmi_serv_stop_ut (void)
 
void prepare_rpc_env (struct test_rpc_env *env, struct m0_reqh *reqh, const struct m0_rpc_frm_ops *frm_ops, bool sender, struct m0_rpc_conn *rpc_conn, struct m0_rpc_session *rpc_session)
 
void unprepare_rpc_env (struct test_rpc_env *env)
 
void fdmi_ut_packet_send_failed (struct m0_rpc_machine *mach, struct m0_rpc_packet *p)
 

Variables

struct fdmi_sd_ut_ctx g_sd_ut
 
const struct m0_filterc_ops filterc_stub_ops
 

Macro Definition Documentation

◆ __MOTR_FDMI_UT_FDMI_SD_COMMON_H__

#define __MOTR_FDMI_UT_FDMI_SD_COMMON_H__

Definition at line 25 of file sd_common.h.

◆ _QUOTE

#define _QUOTE (   s)    #s

Definition at line 31 of file sd_common.h.

◆ M0_FDMI_UT_PATH

#define M0_FDMI_UT_PATH (   name)    QUOTE(M0_FDMI_UT_DIR) "/" name

Definition at line 35 of file sd_common.h.

◆ QUOTE

#define QUOTE (   s)    _QUOTE(s)

Definition at line 32 of file sd_common.h.

Function Documentation

◆ fdmi_serv_start_ut()

void fdmi_serv_start_ut ( const struct m0_filterc_ops filterc_ops)

Definition at line 66 of file sd_common.c.

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

◆ fdmi_serv_stop_ut()

void fdmi_serv_stop_ut ( void  )

Definition at line 121 of file sd_common.c.

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

◆ fdmi_ut_packet_send_failed()

void fdmi_ut_packet_send_failed ( struct m0_rpc_machine mach,
struct m0_rpc_packet p 
)

Definition at line 154 of file sd_common.c.

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

◆ prepare_rpc_env()

void prepare_rpc_env ( struct test_rpc_env env,
struct m0_reqh reqh,
const struct m0_rpc_frm_ops frm_ops,
bool  sender,
struct m0_rpc_conn rpc_conn,
struct m0_rpc_session rpc_session 
)
Todo:
Add prefix

Definition at line 171 of file sd_common.c.

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

◆ unprepare_rpc_env()

void unprepare_rpc_env ( struct test_rpc_env env)

Definition at line 241 of file sd_common.c.

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

Variable Documentation

◆ filterc_stub_ops

const struct m0_filterc_ops filterc_stub_ops

Definition at line 43 of file filterc_stub.c.

◆ g_sd_ut

struct fdmi_sd_ut_ctx g_sd_ut

Definition at line 41 of file sd_common.c.