diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-25 14:23:36 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-25 14:23:36 -0400 |
commit | afcdcf6ae6d95eb828733994c7de30f8ab095dcc (patch) | |
tree | e45ee28dc7bff6da7ab0d5f6a3e2b27c6ac36aa8 /src/include/dgram.h | |
parent | 25872d593fc4f9d2845ef6f676ce4ec3d55e9aac (diff) |
dgram: Add support for data reception
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/include/dgram.h')
-rw-r--r-- | src/include/dgram.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/dgram.h b/src/include/dgram.h index 9c87b81..0f798ee 100644 --- a/src/include/dgram.h +++ b/src/include/dgram.h @@ -35,6 +35,7 @@ #include "link.h" typedef int16_t tx_len_t; +typedef tx_len_t rx_len_t; /* * Represents an ONET datagram @@ -103,5 +104,13 @@ tx_len_t dgram_send( void *buf, uint16_t len ); +/* + * Get data from an ONET link + * + * @link: The ONET link to recv data from + * @buf: The buffer to recv data into + * @len: The length of expected data + */ +rx_len_t dgram_recv(struct onet_link *link, void *buf, uint16_t len); #endif /* DGRAM_H */ |