Motr  M0
udb.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2012-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 
23 #pragma once
24 
25 #ifndef __MOTR_UDB_UDB_H__
26 #define __MOTR_UDB_UDB_H__
27 
45 struct m0_udb_domain {
46 
47 };
48 
49 
66 };
67 
68 struct m0_udb_cred {
71 };
72 
73 
77 struct m0_udb_ctxt {
78 
79 };
80 
87 M0_INTERNAL int m0_udb_ctxt_init(struct m0_udb_ctxt *ctxt);
88 
94 M0_INTERNAL void m0_udb_ctxt_fini(struct m0_udb_ctxt *ctxt);
95 
109 M0_INTERNAL int m0_udb_add(struct m0_udb_ctxt *ctxt,
110  const struct m0_udb_domain *edomain,
111  const struct m0_udb_cred *external,
112  const struct m0_udb_cred *internal);
113 
123 M0_INTERNAL int m0_udb_del(struct m0_udb_ctxt *ctxt,
124  const struct m0_udb_domain *edomain,
125  const struct m0_udb_cred *external,
126  const struct m0_udb_cred *internal);
127 
128 
137 M0_INTERNAL int m0_udb_e2i(struct m0_udb_ctxt *ctxt,
138  const struct m0_udb_cred *external,
139  struct m0_udb_cred *internal);
140 
149 M0_INTERNAL int m0_udb_i2e(struct m0_udb_ctxt *ctxt,
150  const struct m0_udb_cred *internal,
151  struct m0_udb_cred *external);
152 
155 /* __MOTR_UDB_UDB_H__ */
156 #endif
157 
158 /*
159  * Local variables:
160  * c-indentation-style: "K&R"
161  * c-basic-offset: 8
162  * tab-width: 8
163  * fill-column: 80
164  * scroll-step: 1
165  * End:
166  */
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
enum m0_udb_cred_type uc_type
Definition: udb.h:69
m0_udb_cred_type
Definition: udb.h:63
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
struct m0_udb_domain * uc_domain
Definition: udb.h:70
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