blob: b5658765081a490144032e7eb066427cca4ff423 [file] [log] [blame]
#ifndef _MCTP_TESTS_TEST_UTILS_H
#define _MCTP_TESTS_TEST_UTILS_H
#include <libmctp.h>
/* test binding implementation */
/* standard binding interface */
struct mctp_binding_test *mctp_binding_test_init(void);
void mctp_binding_test_register_bus(struct mctp_binding_test *binding,
struct mctp *mctp, mctp_eid_t eid);
/* internal test binding interface */
void mctp_binding_test_rx_raw(struct mctp_binding_test *test,
void *buf, size_t len);
/* gerneral utility functions */
/* create a MCTP stack, and add a test binding, using the specified EID */
void mctp_test_stack_init(struct mctp **mctp,
struct mctp_binding_test **binding,
mctp_eid_t eid);
#endif /* _MCTP_TESTS_TEST_UTILS_H */