Motr  M0
db.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2013-2020 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 #pragma once
23 #ifndef __MOTR_CONF_DB_H__
24 #define __MOTR_CONF_DB_H__
25 
26 #include "be/tx_credit.h"
27 #include "be/seg.h"
28 
29 
30 struct m0_fid;
31 struct m0_confx;
32 struct m0_confx_obj;
33 
37 M0_INTERNAL int m0_confdb_create_credit(struct m0_be_seg *seg,
38  const struct m0_confx *conf,
39  struct m0_be_tx_credit *accum);
40 
47 M0_INTERNAL int m0_confdb_create(struct m0_be_seg *seg,
48  struct m0_be_tx *tx,
49  const struct m0_confx *conf,
50  const struct m0_fid *btree_fid);
51 
55 M0_INTERNAL void m0_confdb_fini(struct m0_be_seg *seg);
60 M0_INTERNAL void m0_confdb_destroy_credit(struct m0_be_seg *seg,
61  struct m0_be_tx_credit *accum);
62 M0_INTERNAL int m0_confdb_destroy(struct m0_be_seg *seg, struct m0_be_tx *tx);
63 
71 M0_INTERNAL int m0_confdb_read(struct m0_be_seg *seg, struct m0_confx **out);
72 
73 #endif /* __MOTR_CONF_DB_H__ */
M0_INTERNAL int m0_confdb_create(struct m0_be_seg *seg, struct m0_be_tx *tx, const struct m0_confx *conf, const struct m0_fid *btree_fid)
Definition: db.c:331
M0_INTERNAL int m0_confdb_read(struct m0_be_seg *seg, struct m0_confx **out)
Definition: db.c:544
Definition: conf.py:1
M0_INTERNAL void m0_confdb_fini(struct m0_be_seg *seg)
Definition: db.c:464
M0_INTERNAL int m0_confdb_create_credit(struct m0_be_seg *seg, const struct m0_confx *conf, struct m0_be_tx_credit *accum)
Definition: db.c:255
Definition: seg.h:66
Definition: fid.h:38
M0_INTERNAL int m0_confdb_destroy(struct m0_be_seg *seg, struct m0_be_tx *tx)
Definition: db.c:443
static struct m0_be_seg * seg
Definition: btree.c:40
#define out(...)
Definition: gen.c:41
M0_INTERNAL void m0_confdb_destroy_credit(struct m0_be_seg *seg, struct m0_be_tx_credit *accum)
Definition: db.c:380
Definition: tx.h:280