Motr
M0
at_ut.h
Go to the documentation of this file.
1
/* -*- C -*- */
2
/*
3
* Copyright (c) 2016-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_RPC_UT_AT_AT_UT_H__
26
#define __MOTR_RPC_UT_AT_AT_UT_H__
27
28
#include "
xcode/xcode_attr.h
"
29
#include "
lib/types.h
"
30
#include "
rpc/at.h
"
31
#include "rpc/at_xc.h"
32
33
/* import */
34
struct
m0_rpc_machine
;
35
36
enum
{
37
DATA_PATTERN
= 0x0a,
38
INLINE_LEN
= 70,
39
};
40
41
enum
{
42
/* Tests oriented on sending data to server. */
43
AT_TEST_INLINE_SEND
,
44
AT_TEST_INBULK_SEND
,
45
46
/*
47
* Tests oriented on receiving data from server.
48
* Note, AT_TEST_INLINE_RECV should be the first.
49
*/
50
AT_TEST_INLINE_RECV
,
51
AT_TEST_INLINE_RECV_UNK
,
52
AT_TEST_INBULK_RECV_UNK
,
53
AT_TEST_INBULK_RECV
,
54
};
55
56
M0_INTERNAL
void
atut__bufdata_alloc
(
struct
m0_buf
*
buf
,
size_t
size
,
57
struct
m0_rpc_machine
*rmach);
58
59
struct
atut__req
{
60
uint32_t
arq_test_id
;
61
struct
m0_rpc_at_buf
arq_buf
;
62
} M0_XCA_RECORD
M0_XCA_DOMAIN
(rpc);
63
64
struct
atut__rep
{
65
uint32_t
arp_rc
;
66
struct
m0_rpc_at_buf
arp_buf
;
67
} M0_XCA_RECORD
M0_XCA_DOMAIN
(rpc);
68
69
#endif
/* __MOTR_RPC_UT_AT_AT_UT_H__ */
70
71
/*
72
* Local variables:
73
* c-indentation-style: "K&R"
74
* c-basic-offset: 8
75
* tab-width: 8
76
* fill-column: 80
77
* scroll-step: 1
78
* End:
79
*/
80
/*
81
* vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
82
*/
AT_TEST_INLINE_RECV
Definition:
at_ut.h:50
types.h
AT_TEST_INLINE_RECV_UNK
Definition:
at_ut.h:51
AT_TEST_INBULK_SEND
Definition:
at_ut.h:44
INLINE_LEN
Definition:
at_ut.h:38
at.h
atut__bufdata_alloc
M0_INTERNAL void atut__bufdata_alloc(struct m0_buf *buf, size_t size, struct m0_rpc_machine *rmach)
Definition:
at_ut.c:143
xcode_attr.h
buf
Definition:
sock.c:887
atut__req::arq_test_id
uint32_t arq_test_id
Definition:
at_ut.h:60
m0_buf
Definition:
buf.h:37
AT_TEST_INBULK_RECV_UNK
Definition:
at_ut.h:52
AT_TEST_INBULK_RECV
Definition:
at_ut.h:53
AT_TEST_INLINE_SEND
Definition:
at_ut.h:43
m0_rpc_at_buf
Definition:
at.h:249
atut__rep::arp_rc
uint32_t arp_rc
Definition:
at_ut.h:65
M0_XCA_DOMAIN
struct atut__req M0_XCA_DOMAIN(rpc)
atut__rep
Definition:
at_ut.h:64
size
m0_bcount_t size
Definition:
di.c:39
m0_rpc_machine
Definition:
rpc_machine.h:81
atut__rep::arp_buf
struct m0_rpc_at_buf arp_buf
Definition:
at_ut.h:66
DATA_PATTERN
Definition:
at_ut.h:37
atut__req
Definition:
at_ut.h:59
atut__req::arq_buf
struct m0_rpc_at_buf arq_buf
Definition:
at_ut.h:61
rpc
ut
at
at_ut.h
Generated on Thu Apr 14 2022 14:03:00 for Motr by
1.8.14