Motr  M0
param.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-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_MODULE_PARAM_H__
23 #define __MOTR_MODULE_PARAM_H__
24 
25 #include "lib/tlist.h" /* m0_tlink */
26 
40 M0_INTERNAL void *m0_param_get(const char *key);
41 
60  void *(*ps_param_get)(const struct m0_param_source *src,
61  const char *key);
63  struct m0_tlink ps_link;
64  uint64_t ps_magic;
65 };
66 
67 M0_TL_DECLARE(m0_param_sources, M0_INTERNAL, struct m0_param_source);
68 
70 M0_INTERNAL void m0_param_source_add(struct m0_param_source *src);
71 
73 M0_INTERNAL void m0_param_source_del(struct m0_param_source *src);
74 
76 #endif /* __MOTR_MODULE_PARAM_H__ */
M0_TL_DECLARE(m0_param_sources, M0_INTERNAL, struct m0_param_source)
M0_INTERNAL void m0_param_source_del(struct m0_param_source *src)
Definition: param.c:62
M0_INTERNAL void * m0_param_get(const char *key)
Definition: param.c:44
static int key
Definition: locality.c:283
struct m0_tlink ps_link
Definition: param.h:63
M0_INTERNAL void m0_param_source_add(struct m0_param_source *src)
Definition: param.c:56
struct m0_pdclust_src_addr src
Definition: fd.c:108
uint64_t ps_magic
Definition: param.h:64
Definition: idx_mock.c:47