blob: b5658765081a490144032e7eb066427cca4ff423 [file] [log] [blame]
Jeremy Kerr18925112019-03-13 15:43:08 +08001#ifndef _MCTP_TESTS_TEST_UTILS_H
2#define _MCTP_TESTS_TEST_UTILS_H
3
4#include <libmctp.h>
5
6/* test binding implementation */
7
8/* standard binding interface */
9struct mctp_binding_test *mctp_binding_test_init(void);
10void mctp_binding_test_register_bus(struct mctp_binding_test *binding,
11 struct mctp *mctp, mctp_eid_t eid);
12
13/* internal test binding interface */
14void mctp_binding_test_rx_raw(struct mctp_binding_test *test,
15 void *buf, size_t len);
16
17/* gerneral utility functions */
18
19/* create a MCTP stack, and add a test binding, using the specified EID */
20void mctp_test_stack_init(struct mctp **mctp,
21 struct mctp_binding_test **binding,
22 mctp_eid_t eid);
23
24#endif /* _MCTP_TESTS_TEST_UTILS_H */