Motr  M0
capa.h File Reference
#include "lib/atomic.h"
#include "net/net.h"
Include dependency graph for capa.h:

Go to the source code of this file.

Data Structures

struct  m0_capa_issuer
 
struct  m0_object_capa
 
struct  m0_capa_ctxt
 

Macros

#define __MOTR_CAPA_CAPA_H__
 

Enumerations

enum  m0_capa_entity_type { M0_CAPA_ENTITY_OBJECT, M0_CAPA_ENTITY_LOCKS, M0_CAPA_ENTITY_LAYOUT }
 
enum  m0_capa_operation { M0_CAPA_OP_DATA_READ, M0_CAPA_OP_DATA_WRITE }
 
enum  { M0_CAPA_HMAC_MAX_LEN = 64 }
 

Functions

M0_INTERNAL int m0_capa_ctxt_init (struct m0_capa_ctxt *ctxt)
 
M0_INTERNAL void m0_capa_ctxt_fini (struct m0_capa_ctxt *ctxt)
 
M0_INTERNAL int m0_capa_new (struct m0_object_capa *capa, enum m0_capa_entity_type type, enum m0_capa_operation opcode, void *data)
 
M0_INTERNAL int m0_capa_get (struct m0_capa_ctxt *ctxt, struct m0_capa_issuer *owner, struct m0_object_capa *capa)
 
M0_INTERNAL void m0_capa_put (struct m0_capa_ctxt *ctxt, struct m0_object_capa *capa)
 
M0_INTERNAL int m0_capa_auth (struct m0_capa_ctxt *ctxt, struct m0_object_capa *capa, enum m0_capa_operation op)
 

Macro Definition Documentation

◆ __MOTR_CAPA_CAPA_H__

#define __MOTR_CAPA_CAPA_H__

Definition at line 26 of file capa.h.