µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
net-interface.h
Go to the documentation of this file.
1/*
2 * This file is part of the µOS++ project (https://micro-os-plus.github.io/).
3 * Copyright (c) 2015-2025 Liviu Ionescu. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software
6 * for any purpose is hereby granted, under the terms of the MIT license.
7 *
8 * If a copy of the license was not distributed with this file, it can
9 * be obtained from https://opensource.org/licenses/mit.
10 */
11
12#ifndef CMSIS_PLUS_POSIX_IO_NET_INTERFACE_H_
13#define CMSIS_PLUS_POSIX_IO_NET_INTERFACE_H_
14
15// ----------------------------------------------------------------------------
16
17#if defined(__cplusplus)
18
19// ----------------------------------------------------------------------------
20
21#if defined(OS_USE_OS_APP_CONFIG_H)
22#include <cmsis-plus/os-app-config.h>
23#endif
24
25// ----------------------------------------------------------------------------
26
27#pragma GCC diagnostic push
28#if defined(__clang__)
29#pragma clang diagnostic ignored "-Wc++98-compat"
30#endif
31
32// ----------------------------------------------------------------------------
33
34namespace os
35{
36 namespace posix
37 {
38 // ------------------------------------------------------------------------
39
40 class net_interface_impl;
41
42 // ========================================================================
43
50 {
51 // ----------------------------------------------------------------------
52
58 public:
59 net_interface (net_interface_impl& impl, const char* name);
60
65 // The rule of five.
66 net_interface (const net_interface&) = delete;
67 net_interface (net_interface&&) = delete;
69 operator= (const net_interface&)
70 = delete;
72 operator= (net_interface&&)
73 = delete;
74
79 virtual ~net_interface ();
80
85 // TODO: add content
86 };
87
88 } /* namespace posix */
89} /* namespace os */
90
91#pragma GCC diagnostic pop
92
93// ----------------------------------------------------------------------------
94
95#endif /* __cplusplus */
96
97// ----------------------------------------------------------------------------
98
99#endif /* CMSIS_PLUS_POSIX_IO_NET_INTERFACE_H_ */
Network interface class.
net_interface(net_interface_impl &impl, const char *name)
System namespace.