Motr  M0
entrypoint.h File Reference
#include "lib/types.h"
#include "lib/buf.h"
#include "lib/chan.h"
#include "lib/semaphore.h"
#include "lib/tlist.h"
#include "lib/mutex.h"
#include "sm/sm.h"
#include "fid/fid.h"
#include "xcode/xcode_attr.h"
#include "fop/fom.h"
#include "fop/fop.h"
#include "ha/entrypoint_fops.h"
#include "rpc/link.h"
Include dependency graph for entrypoint.h:

Go to the source code of this file.

Data Structures

struct  m0_ha_entrypoint_server_cfg
 
struct  m0_ha_entrypoint_server
 
struct  m0_ha_entrypoint_client_cfg
 
struct  m0_ha_entrypoint_client
 

Macros

#define __MOTR_HA_ENTRYPOINT_H__
 

Enumerations

enum  m0_ha_entrypoint_server_fom_state { M0_HES_INIT = M0_FOM_PHASE_INIT, M0_HES_FINI = M0_FOM_PHASE_FINISH, M0_HES_REPLY_WAIT }
 
enum  m0_ha_entrypoint_client_state {
  M0_HEC_INIT, M0_HEC_STOPPED, M0_HEC_UNAVAILABLE, M0_HEC_CONNECT,
  M0_HEC_CONNECT_WAIT, M0_HEC_FILL, M0_HEC_SEND, M0_HEC_SEND_WAIT,
  M0_HEC_DISCONNECT, M0_HEC_DISCONNECT_WAIT, M0_HEC_AVAILABLE, M0_HEC_FINI
}
 

Functions

M0_INTERNAL int m0_ha_entrypoint_server_init (struct m0_ha_entrypoint_server *hes, struct m0_ha_entrypoint_server_cfg *hes_cfg)
 
M0_INTERNAL void m0_ha_entrypoint_server_fini (struct m0_ha_entrypoint_server *hes)
 
M0_INTERNAL void m0_ha_entrypoint_server_start (struct m0_ha_entrypoint_server *hes)
 
M0_INTERNAL void m0_ha_entrypoint_server_stop (struct m0_ha_entrypoint_server *hes)
 
M0_INTERNAL void m0_ha_entrypoint_server_reply (struct m0_ha_entrypoint_server *hes, const struct m0_uint128 *req_id, const struct m0_ha_entrypoint_rep *rep)
 
M0_INTERNAL const struct m0_ha_entrypoint_reqm0_ha_entrypoint_server_request_find (struct m0_ha_entrypoint_server *hes, const struct m0_uint128 *req_id)
 
M0_INTERNAL int m0_ha_entrypoint_client_init (struct m0_ha_entrypoint_client *ecl, const char *ep, struct m0_ha_entrypoint_client_cfg *ecl_cfg)
 
M0_INTERNAL void m0_ha_entrypoint_client_fini (struct m0_ha_entrypoint_client *ecl)
 
M0_INTERNAL void m0_ha_entrypoint_client_start (struct m0_ha_entrypoint_client *ecl)
 
M0_INTERNAL void m0_ha_entrypoint_client_start_sync (struct m0_ha_entrypoint_client *ecl)
 
M0_INTERNAL void m0_ha_entrypoint_client_stop (struct m0_ha_entrypoint_client *ecl)
 
M0_INTERNAL void m0_ha_entrypoint_client_request (struct m0_ha_entrypoint_client *ecl)
 
M0_INTERNAL struct m0_chanm0_ha_entrypoint_client_chan (struct m0_ha_entrypoint_client *ecl)
 
M0_INTERNAL enum m0_ha_entrypoint_client_state m0_ha_entrypoint_client_state_get (struct m0_ha_entrypoint_client *ecl)
 
M0_INTERNAL int m0_ha_entrypoint_mod_init (void)
 
M0_INTERNAL void m0_ha_entrypoint_mod_fini (void)
 

Variables

const struct m0_fom_type_ops m0_ha_entrypoint_fom_type_ops
 
struct m0_reqh_service_type m0_ha_entrypoint_service_type
 
struct m0_sm_conf m0_ha_entrypoint_server_fom_states_conf
 

Macro Definition Documentation

◆ __MOTR_HA_ENTRYPOINT_H__

#define __MOTR_HA_ENTRYPOINT_H__

Definition at line 26 of file entrypoint.h.