Motr  M0
helpers.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 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 
22 #pragma once
23 
24 #ifndef __MOTR_HELPERS_HELPERS_H__
25 #define __MOTR_HELPERS_HELPERS_H__
26 
27 #include "helpers/ufid.h"
28 
33 struct m0_ufid_generator;
34 
42 M0_INTERNAL int m0_ufid_init(struct m0_client *m0c,
43  struct m0_ufid_generator *gr);
44 
50 M0_INTERNAL void m0_ufid_fini(struct m0_ufid_generator *gr);
51 
75 int m0_ufid_new(struct m0_ufid_generator *gr, uint32_t nr_ids,
76  uint32_t nr_skip_ids, struct m0_uint128 *id128);
77 
84 int m0_ufid_next(struct m0_ufid_generator *gr,
85  uint32_t nr_ids, struct m0_uint128 *id128);
86 
87 
88 #endif /* __MOTR_HELPERS_HELPERS_H__ */
89 
90 /*
91  * Local variables:
92  * c-indentation-style: "K&R"
93  * c-basic-offset: 8
94  * tab-width: 8
95  * fill-column: 80
96  * scroll-step: 1
97  * End:
98  */
99 /*
100  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
101  */
static struct m0_clovis * m0c
Definition: main.c:25
M0_INTERNAL void m0_ufid_fini(struct m0_ufid_generator *gr)
Definition: ufid.c:283
M0_INTERNAL int m0_ufid_init(struct m0_client *m0c, struct m0_ufid_generator *gr)
Definition: ufid.c:248
int m0_ufid_next(struct m0_ufid_generator *gr, uint32_t nr_ids, struct m0_uint128 *id128)
Definition: ufid.c:338
int m0_ufid_new(struct m0_ufid_generator *gr, uint32_t nr_ids, uint32_t nr_skip_ids, struct m0_uint128 *id128)
Definition: ufid.c:298