Motr  M0
slist.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_NET_TEST_SLIST_H__
26 #define __MOTR_NET_TEST_SLIST_H__
27 
28 #include "lib/vec.h" /* m0_bufvec */
29 #include "net/test/serialize.h" /* m0_net_test_serialize_op */
30 
49  size_t ntsl_nr;
53  char **ntsl_list;
58  char *ntsl_str;
59 };
60 
71  const char *str,
72  char delim);
77 void m0_net_test_slist_fini(struct m0_net_test_slist *slist);
78 bool m0_net_test_slist_invariant(const struct m0_net_test_slist *slist);
79 
87 bool m0_net_test_slist_unique(const struct m0_net_test_slist *slist);
88 
98  struct m0_net_test_slist *slist,
99  struct m0_bufvec *bv,
101 
106 #endif /* __MOTR_NET_TEST_SLIST_H__ */
107 
108 /*
109  * Local variables:
110  * c-indentation-style: "K&R"
111  * c-basic-offset: 8
112  * tab-width: 8
113  * fill-column: 79
114  * scroll-step: 1
115  * End:
116  */
bool m0_net_test_slist_unique(const struct m0_net_test_slist *slist)
Definition: slist.c:129
int m0_net_test_slist_init(struct m0_net_test_slist *slist, const char *str, char delim)
Definition: slist.c:57
uint64_t m0_bcount_t
Definition: types.h:77
m0_bcount_t m0_net_test_slist_serialize(enum m0_net_test_serialize_op op, struct m0_net_test_slist *slist, struct m0_bufvec *bv, m0_bcount_t offset)
Definition: slist.c:235
op
Definition: libdemo.c:64
bool m0_net_test_slist_invariant(const struct m0_net_test_slist *slist)
Definition: slist.c:97
void m0_net_test_slist_fini(struct m0_net_test_slist *slist)
Definition: slist.c:120
size_t ntsl_nr
Definition: slist.h:49
char * ntsl_str
Definition: slist.h:58
static m0_bindex_t offset
Definition: dump.c:173
m0_net_test_serialize_op
Definition: serialize.h:42
char ** ntsl_list
Definition: slist.h:53
Definition: vec.h:145