diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:26:37 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:38:20 +0200 |
| commit | c6be6d0c97f694d423c4081c4d9dcfbb85880095 (patch) | |
| tree | 7d65abe6babf8d4c246e90b26585448d3d7b5e80 /src/net/inc | |
| parent | 04a526f92a6b77b44eed550f61e0c1a27f6b1f22 (diff) | |
| download | jancity-c6be6d0c97f694d423c4081c4d9dcfbb85880095.tar.gz | |
net: Implement net_serial_devices
This function provides a platform-specific list of serial devices that
can be accessed.
Diffstat (limited to 'src/net/inc')
| -rw-r--r-- | src/net/inc/net/serial.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/net/inc/net/serial.h b/src/net/inc/net/serial.h new file mode 100644 index 0000000..ee81e9f --- /dev/null +++ b/src/net/inc/net/serial.h @@ -0,0 +1,17 @@ +#ifndef NET_SERIAL_H +#define NET_SERIAL_H + +#include <stddef.h> + +#ifdef __cplusplus +extern "C" +{ +#endif + +const char *const *net_serial_devices(size_t *n); + +#ifdef __cplusplus +} +#endif + +#endif /* NET_SERIAL_H */ |
