Motr  M0
udb.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-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 #include "udb.h"
23 
30 M0_INTERNAL int m0_udb_ctxt_init(struct m0_udb_ctxt *ctxt)
31 {
32  /* TODO add more here. Now it is a stub */
33  return 0;
34 }
35 
36 M0_INTERNAL void m0_udb_ctxt_fini(struct m0_udb_ctxt *ctxt)
37 {
38 
39  /* TODO add more here. Now it is a stub */
40  return;
41 }
42 
43 M0_INTERNAL int m0_udb_add(struct m0_udb_ctxt *ctxt,
44  const struct m0_udb_domain *edomain,
45  const struct m0_udb_cred *external,
46  const struct m0_udb_cred *internal)
47 {
48  /* TODO add more here. Now it is a stub */
49  return 0;
50 }
51 
52 M0_INTERNAL int m0_udb_del(struct m0_udb_ctxt *ctxt,
53  const struct m0_udb_domain *edomain,
54  const struct m0_udb_cred *external,
55  const struct m0_udb_cred *internal)
56 {
57 
58  /* TODO add more here. Now it is a stub */
59  return 0;
60 }
61 
62 M0_INTERNAL int m0_udb_e2i(struct m0_udb_ctxt *ctxt,
63  const struct m0_udb_cred *external,
64  struct m0_udb_cred *internal)
65 {
66 
67  /* TODO add more here. Now it is a stub */
68  return 0;
69 }
70 
71 M0_INTERNAL int m0_udb_i2e(struct m0_udb_ctxt *ctxt,
72  const struct m0_udb_cred *internal,
73  struct m0_udb_cred *external)
74 {
75 
76  /* TODO add more here. Now it is a stub */
77  return 0;
78 }
79 
82 /*
83  * Local variables:
84  * c-indentation-style: "K&R"
85  * c-basic-offset: 8
86  * tab-width: 8
87  * fill-column: 80
88  * scroll-step: 1
89  * End:
90  */
M0_INTERNAL int m0_udb_add(struct m0_udb_ctxt *ctxt, const struct m0_udb_domain *edomain, const struct m0_udb_cred *external, const struct m0_udb_cred *internal)
Definition: udb.c:43
M0_INTERNAL int m0_udb_ctxt_init(struct m0_udb_ctxt *ctxt)
Definition: udb.c:30
M0_INTERNAL int m0_udb_del(struct m0_udb_ctxt *ctxt, const struct m0_udb_domain *edomain, const struct m0_udb_cred *external, const struct m0_udb_cred *internal)
Definition: udb.c:52
M0_INTERNAL int m0_udb_e2i(struct m0_udb_ctxt *ctxt, const struct m0_udb_cred *external, struct m0_udb_cred *internal)
Definition: udb.c:62
M0_INTERNAL int m0_udb_i2e(struct m0_udb_ctxt *ctxt, const struct m0_udb_cred *internal, struct m0_udb_cred *external)
Definition: udb.c:71
M0_INTERNAL void m0_udb_ctxt_fini(struct m0_udb_ctxt *ctxt)
Definition: udb.c:36