Motr
M0
|
#include <obj_ops.h>
Data Fields | |
bool(* | coo_invariant )(const struct m0_conf_obj *obj) |
int(* | coo_decode )(struct m0_conf_obj *dest, const struct m0_confx_obj *src) |
int(* | coo_encode )(struct m0_confx_obj *dest, const struct m0_conf_obj *src) |
bool(* | coo_match )(const struct m0_conf_obj *cached, const struct m0_confx_obj *flat) |
int(* | coo_lookup )(const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out) |
int(* | coo_readdir )(const struct m0_conf_obj *dir, struct m0_conf_obj **pptr) |
const struct m0_fid **(* | coo_downlinks )(const struct m0_conf_obj *obj) |
void(* | coo_delete )(struct m0_conf_obj *obj) |
int(* coo_decode) (struct m0_conf_obj *dest, const struct m0_confx_obj *src) |
Populates concrete object with configuration data taken from m0_confx_obj.
Creates stubs of object's neighbours, if necessary.
void(* coo_delete) (struct m0_conf_obj *obj) |
Finalises concrete fields of given configuration object and frees it.
const struct m0_fid**(* coo_downlinks) (const struct m0_conf_obj *obj) |
Returns NULL-terminated array of the downlink fids of this conf object.
Downlink fid can be passed as ‘name’ parameter to ->coo_lookup().
int(* coo_encode) (struct m0_confx_obj *dest, const struct m0_conf_obj *src) |
bool(* coo_invariant) (const struct m0_conf_obj *obj) |
int(* coo_lookup) (const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out) |
Finds a child of given object.
parent | The object being searched. |
name | Name of the relation leading to a child object. Identifier of the child object, if parent is a directory. |
out | If the function succeeds, *out will point to the sought-for object. |
bool(* coo_match) (const struct m0_conf_obj *cached, const struct m0_confx_obj *flat) |
int(* coo_readdir) (const struct m0_conf_obj *dir, struct m0_conf_obj **pptr) |
Gets next directory entry.
dir | Directory. | |
[in] | pptr | "Current" entry. |
[out] | pptr | "Next" entry. |
M0_CONF_DIRMISS | The next directory entry is missing from configuration cache or is a stub. |
M0_CONF_DIRNEXT | *pptr now points to the next entry. |
M0_CONF_DIREND | End of directory is reached. |
-Exxx | Error. |
->coo_readdir() puts (m0_conf_obj_put()) the configuration object referred to via ‘pptr’ input parameter.
->coo_readdir() pins (m0_conf_obj_get()) the resulting object in case of M0_CONF_DIRNEXT.