Harald Welte | bd44858 | 2016-12-23 23:41:14 +0100 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include <stdint.h> | ||||
4 | #include <osmocom/core/msgb.h> | ||||
5 | |||||
6 | struct diag_instance { | ||||
7 | int fd; | ||||
8 | struct { | ||||
9 | struct msgb *msg; | ||||
10 | void (*rcvmsg)(struct diag_instance *di, struct msgb *msg); | ||||
11 | } rx; | ||||
12 | struct { | ||||
13 | } tx; | ||||
14 | }; | ||||
15 | |||||
16 | int diag_transmit_msgb(struct diag_instance *di, struct msgb *msg); | ||||
17 | int diag_transmit_buf(struct diag_instance *di, const uint8_t *data, size_t data_len); | ||||
18 | int diag_read(struct diag_instance *di); |