Motr  M0
encdec.c File Reference
#include "lib/trace.h"
#include "lib/memory.h"
#include "lib/errno.h"
#include "lib/vec.h"
#include "xcode/xcode.h"
#include "dix/layout.h"
#include "dix/encdec.h"
#include "dix/encdec_xc.h"
Include dependency graph for encdec.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DIX
 
#define DIX_META_VAL_XCODE_OBJ(ptr)   M0_XCODE_OBJ(dix_meta_val_xc, ptr)
 
#define DIX_LAYOUT_VAL_XCODE_OBJ(ptr)   M0_XCODE_OBJ(m0_dix_layout_xc, ptr)
 
#define DIX_LDESC_VAL_XCODE_OBJ(ptr)   M0_XCODE_OBJ(m0_dix_ldesc_xc, ptr)
 
#define DIX_FID_VAL_XCODE_OBJ(ptr)   M0_XCODE_OBJ(m0_fid_xc, ptr)
 

Functions

M0_INTERNAL int m0_dix__meta_val_enc (const struct m0_fid *fid, const struct m0_dix_ldesc *dld, uint32_t nr, struct m0_bufvec *vals)
 
M0_INTERNAL int m0_dix__meta_val_dec (const struct m0_bufvec *vals, struct m0_fid *out_fid, struct m0_dix_ldesc *out_dld, uint32_t nr)
 
M0_INTERNAL int m0_dix__layout_vals_enc (const struct m0_fid *fid, const struct m0_dix_layout *dlay, uint32_t nr, struct m0_bufvec *keys, struct m0_bufvec *vals)
 
M0_INTERNAL int m0_dix__layout_vals_dec (const struct m0_bufvec *keys, const struct m0_bufvec *vals, struct m0_fid *out_fid, struct m0_dix_layout *out_dlay, uint32_t nr)
 
M0_INTERNAL int m0_dix__ldesc_vals_enc (const uint64_t *lid, const struct m0_dix_ldesc *ldesc, uint32_t nr, struct m0_bufvec *keys, struct m0_bufvec *vals)
 
M0_INTERNAL int m0_dix__ldesc_vals_dec (const struct m0_bufvec *keys, const struct m0_bufvec *vals, uint64_t *out_lid, struct m0_dix_ldesc *out_ldesc, uint32_t nr)