Motr
M0
walk.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016-2020 Seagate Technology LLC and/or its Affiliates
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
* For any questions about this software or licensing,
17
* please email opensource@seagate.com or cortx-questions@seagate.com.
18
*
19
*/
20
21
#pragma once
22
#ifndef __MOTR_CONF_WALK_H__
23
#define __MOTR_CONF_WALK_H__
24
25
struct
m0_conf_obj
;
26
37
enum
{
39
M0_CW_STOP
,
41
M0_CW_CONTINUE
,
46
M0_CW_SKIP_SUBTREE
,
51
M0_CW_SKIP_SIBLINGS
52
};
53
64
M0_INTERNAL
int
m0_conf_walk
(
int
(*fn)(
struct
m0_conf_obj
*
obj
,
void
*
args
),
65
struct
m0_conf_obj
*origin,
void
*
args
);
66
68
#endif
/* __MOTR_CONF_WALK_H__ */
M0_CW_SKIP_SUBTREE
Definition:
walk.h:46
args
Definition:
ub.c:49
obj
static struct foo * obj
Definition:
tlist.c:302
m0_conf_walk
M0_INTERNAL int m0_conf_walk(int(*fn)(struct m0_conf_obj *obj, void *args), struct m0_conf_obj *origin, void *args)
Definition:
walk.c:49
M0_CW_SKIP_SIBLINGS
Definition:
walk.h:51
m0_conf_obj
Definition:
obj.h:206
M0_CW_CONTINUE
Definition:
walk.h:41
M0_CW_STOP
Definition:
walk.h:39
conf
walk.h
Generated on Thu Apr 14 2022 14:02:54 for Motr by
1.8.14