Motr  M0
confc.h File Reference
#include "conf/cache.h"
#include "conf/onwire.h"
#include "lib/mutex.h"
#include "sm/sm.h"
#include "rpc/link.h"
Include dependency graph for confc.h:

Go to the source code of this file.

Data Structures

struct  m0_confc_update_state
 
struct  m0_confc
 
struct  m0_confc_gate_ops
 
struct  m0_confc_ctx
 

Macros

#define __MOTR_CONF_CONFC_H__
 
#define m0_confc_open(ctx, origin, ...)
 
#define m0_confc_open_sync(result, origin, ...)
 

Enumerations

enum  m0_confc_state { M0_CC_READY, M0_CC_REVOKED, M0_CC_GETTING_READY, M0_CC_FAILED }
 

Functions

M0_INTERNAL int m0_confc_init_wait (struct m0_confc *confc, struct m0_sm_group *sm_group, const char *confd_addr, struct m0_rpc_machine *rpc_mach, const char *local_conf, uint64_t timeout_ns)
 
M0_INTERNAL int m0_confc_init (struct m0_confc *confc, struct m0_sm_group *sm_group, const char *confd_addr, struct m0_rpc_machine *rpc_mach, const char *local_conf)
 
M0_INTERNAL void m0_confc_fini (struct m0_confc *confc)
 
M0_INTERNAL struct m0_confcm0_confc_from_obj (const struct m0_conf_obj *obj)
 
M0_INTERNAL void m0_confc_gate_ops_set (struct m0_confc *confc, struct m0_confc_gate_ops *gops)
 
M0_INTERNAL int m0_confc_ctx_init (struct m0_confc_ctx *ctx, struct m0_confc *confc)
 
M0_INTERNAL void m0_confc_ctx_fini (struct m0_confc_ctx *ctx)
 
M0_INTERNAL void m0_confc_ctx_fini_locked (struct m0_confc_ctx *ctx)
 
M0_INTERNAL int m0_confc_reconnect (struct m0_confc *confc, struct m0_rpc_machine *rpc_mach, const char *confd_addr)
 
M0_INTERNAL bool m0_confc_ctx_is_completed (const struct m0_confc_ctx *ctx)
 
M0_INTERNAL bool m0_confc_ctx_is_completed_lock (const struct m0_confc_ctx *ctx)
 
M0_INTERNAL int32_t m0_confc_ctx_error (const struct m0_confc_ctx *ctx)
 
M0_INTERNAL int32_t m0_confc_ctx_error_lock (const struct m0_confc_ctx *ctx)
 
M0_INTERNAL struct m0_conf_objm0_confc_ctx_result (struct m0_confc_ctx *ctx)
 
M0_INTERNAL void m0_confc__open (struct m0_confc_ctx *ctx, struct m0_conf_obj *origin, const struct m0_fid *path)
 
M0_INTERNAL int m0_confc__open_sync (struct m0_conf_obj **result, struct m0_conf_obj *origin, const struct m0_fid *path)
 
M0_INTERNAL void m0_confc_close (struct m0_conf_obj *obj)
 
M0_INTERNAL void m0_confc_open_by_fid (struct m0_confc_ctx *ctx, const struct m0_fid *fid)
 
M0_INTERNAL int m0_confc_open_by_fid_sync (struct m0_confc *confc, const struct m0_fid *fid, struct m0_conf_obj **result)
 
M0_INTERNAL int m0_confc_readdir (struct m0_confc_ctx *ctx, struct m0_conf_obj *dir, struct m0_conf_obj **pptr)
 
M0_INTERNAL int m0_confc_readdir_sync (struct m0_conf_obj *dir, struct m0_conf_obj **pptr)
 
M0_INTERNAL bool m0_confc_invariant (const struct m0_confc *confc)
 
M0_INTERNAL bool m0_confc_is_inited (const struct m0_confc *confc)
 
M0_INTERNAL bool m0_confc_is_online (const struct m0_confc *confc)
 
M0_INTERNAL struct m0_rpc_connm0_confc2conn (struct m0_confc *confc)
 
M0_INTERNAL struct m0_rpc_sessionm0_confc2sess (struct m0_confc *confc)
 

Macro Definition Documentation

◆ __MOTR_CONF_CONFC_H__

#define __MOTR_CONF_CONFC_H__

Definition at line 24 of file confc.h.