xref: /openbmc/libmctp/tests/test-utils.h (revision 18925116)
1 #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 */
9 struct mctp_binding_test *mctp_binding_test_init(void);
10 void mctp_binding_test_register_bus(struct mctp_binding_test *binding,
11 		struct mctp *mctp, mctp_eid_t eid);
12 
13 /* internal test binding interface */
14 void 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 */
20 void 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 */
25