Motr  M0
console_it.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_CONSOLE_IT_H__
26 #define __MOTR_CONSOLE_IT_H__
27 
28 #include "fop/fop.h" /* m0_fop_field_type */
29 #include "xcode/xcode.h" /* m0_xcode_type */
30 
40 };
41 
48  void (*catom_val_get)(const struct m0_xcode_type *xct,
49  const char *name, void *data);
50  void (*catom_val_set)(const struct m0_xcode_type *xct,
51  const char *name, void *data);
52  void (*catom_val_show)(const struct m0_xcode_type *xct,
53  const char *name, void *data);
54 };
55 
61 M0_INTERNAL int m0_cons_fop_fields_show(struct m0_fop *fop);
62 
68 M0_INTERNAL int m0_cons_fop_obj_input(struct m0_fop *fop);
69 
75 M0_INTERNAL int m0_cons_fop_obj_output(struct m0_fop *fop);
76 
79 /* __MOTR_CONSOLE_IT_H__ */
80 #endif
81 
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  */
void(* catom_val_get)(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.h:48
struct m0_bufvec data
Definition: di.c:40
void(* catom_val_show)(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.h:52
void(* catom_val_set)(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.h:50
operation to get value of ATOM type (i.e. CHAR, U64 etc).
Definition: console_it.h:47
const char * name
Definition: trace.c:110
M0_INTERNAL int m0_cons_fop_fields_show(struct m0_fop *fop)
Iterate over FOP fields and prints the names.
Definition: console_it.c:277
M0_INTERNAL int m0_cons_fop_obj_output(struct m0_fop *fop)
Helper function for FOP output.
Definition: console_it.c:272
M0_INTERNAL int m0_cons_fop_obj_input(struct m0_fop *fop)
Helper function for FOP input.
Definition: console_it.c:267
static struct m0_fop * fop
Definition: item.c:57
Definition: fop.h:79
m0_cons_data_process_type
Definition: console_it.h:36