Motr  M0
common.h File Reference
#include "conf/confc.h"
#include "lib/chan.h"
Include dependency graph for common.h:

Go to the source code of this file.

Data Structures

struct  m0_conf_ut_waiter
 

Macros

#define __MOTR_CONF_UT_COMMON_H__
 
#define SERVER_ENDPOINT_ADDR   "0@lo:12345:34:1"
 
#define SERVER_ENDPOINT   M0_NET_XPRT_PREFIX_DEFAULT":"SERVER_ENDPOINT_ADDR
 
#define CLIENT_ENDPOINT_ADDR   "0@lo:12345:34:*"
 

Functions

M0_INTERNAL void m0_conf_ut_waiter_init (struct m0_conf_ut_waiter *w, struct m0_confc *confc)
 
M0_INTERNAL void m0_conf_ut_waiter_fini (struct m0_conf_ut_waiter *w)
 
M0_INTERNAL int m0_conf_ut_waiter_wait (struct m0_conf_ut_waiter *w, struct m0_conf_obj **result)
 
M0_INTERNAL int m0_conf_ut_ast_thread_init (void)
 
M0_INTERNAL int m0_conf_ut_ast_thread_fini (void)
 
M0_INTERNAL int m0_conf_ut_cache_init (void)
 
M0_INTERNAL int m0_conf_ut_cache_fini (void)
 
M0_INTERNAL void m0_conf_ut_cache_from_file (struct m0_conf_cache *cache, const char *path)
 

Variables

struct m0_conf_cache m0_conf_ut_cache
 
struct m0_sm_group m0_conf_ut_grp
 

Macro Definition Documentation

◆ __MOTR_CONF_UT_COMMON_H__

#define __MOTR_CONF_UT_COMMON_H__

Definition at line 25 of file common.h.

◆ CLIENT_ENDPOINT_ADDR

#define CLIENT_ENDPOINT_ADDR   "0@lo:12345:34:*"

Definition at line 32 of file common.h.

◆ SERVER_ENDPOINT

#define SERVER_ENDPOINT   M0_NET_XPRT_PREFIX_DEFAULT":"SERVER_ENDPOINT_ADDR

Definition at line 31 of file common.h.

◆ SERVER_ENDPOINT_ADDR

#define SERVER_ENDPOINT_ADDR   "0@lo:12345:34:1"

Definition at line 30 of file common.h.

Function Documentation

◆ m0_conf_ut_ast_thread_fini()

M0_INTERNAL int m0_conf_ut_ast_thread_fini ( void  )

Definition at line 96 of file common.c.

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

◆ m0_conf_ut_ast_thread_init()

M0_INTERNAL int m0_conf_ut_ast_thread_init ( void  )

Definition at line 86 of file common.c.

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

◆ m0_conf_ut_cache_fini()

M0_INTERNAL int m0_conf_ut_cache_fini ( void  )

Definition at line 114 of file common.c.

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

◆ m0_conf_ut_cache_from_file()

M0_INTERNAL void m0_conf_ut_cache_from_file ( struct m0_conf_cache cache,
const char *  path 
)

Definition at line 123 of file common.c.

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

◆ m0_conf_ut_cache_init()

M0_INTERNAL int m0_conf_ut_cache_init ( void  )

Definition at line 107 of file common.c.

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

◆ m0_conf_ut_waiter_fini()

M0_INTERNAL void m0_conf_ut_waiter_fini ( struct m0_conf_ut_waiter w)

Definition at line 49 of file common.c.

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

◆ m0_conf_ut_waiter_init()

M0_INTERNAL void m0_conf_ut_waiter_init ( struct m0_conf_ut_waiter w,
struct m0_confc confc 
)

Definition at line 41 of file common.c.

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

◆ m0_conf_ut_waiter_wait()

M0_INTERNAL int m0_conf_ut_waiter_wait ( struct m0_conf_ut_waiter w,
struct m0_conf_obj **  result 
)

Definition at line 56 of file common.c.

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

Variable Documentation

◆ m0_conf_ut_cache

struct m0_conf_cache m0_conf_ut_cache

Definition at line 31 of file common.c.

◆ m0_conf_ut_grp

struct m0_sm_group m0_conf_ut_grp

Definition at line 32 of file common.c.