Motr  M0
m0_rm_resource_type_ops Struct Reference

#include <rm.h>

Collaboration diagram for m0_rm_resource_type_ops:
Collaboration graph

Data Fields

bool(* rto_eq )(const struct m0_rm_resource *resource0, const struct m0_rm_resource *resource1)
 
bool(* rto_is )(const struct m0_rm_resource *resource, uint64_t id)
 
m0_bcount_t(* rto_len )(const struct m0_rm_resource *resource)
 
int(* rto_decode )(struct m0_bufvec_cursor *cur, struct m0_rm_resource **resource)
 
int(* rto_encode )(struct m0_bufvec_cursor *cur, const struct m0_rm_resource *resource)
 

Detailed Description

Definition at line 450 of file rm.h.

Field Documentation

◆ rto_decode

int(* rto_decode) (struct m0_bufvec_cursor *cur, struct m0_rm_resource **resource)

De-serialises the resource from a buffer.

Definition at line 468 of file rm.h.

◆ rto_encode

int(* rto_encode) (struct m0_bufvec_cursor *cur, const struct m0_rm_resource *resource)

Serialise a resource into a buffer.

Definition at line 473 of file rm.h.

◆ rto_eq

bool(* rto_eq) (const struct m0_rm_resource *resource0, const struct m0_rm_resource *resource1)

Checks if the two resources are equal.

Definition at line 454 of file rm.h.

◆ rto_is

bool(* rto_is) (const struct m0_rm_resource *resource, uint64_t id)

Checks if the resource has "id".

Definition at line 459 of file rm.h.

◆ rto_len

m0_bcount_t(* rto_len) (const struct m0_rm_resource *resource)

Return the size of the resource data

Definition at line 464 of file rm.h.


The documentation for this struct was generated from the following file: