We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab8fbcb commit 29b52d6Copy full SHA for 29b52d6
src/ConnectionHandlerInterface.h
@@ -85,11 +85,16 @@ class ConnectionHandler {
85
* Update the interface settings. This can be performed only when the interface is
86
* in INIT state. otherwise nothing is performed. The type of the interface should match
87
* the type of the settings provided
88
+ *
89
+ * @return true if the update is successfull, false otherwise
90
*/
- virtual void updateSetting(const models::NetworkSetting& s) {
91
+ virtual bool updateSetting(const models::NetworkSetting& s) {
92
if(_current_net_connection_state == NetworkConnectionState::INIT && s.type == _interface) {
93
memcpy(&_settings, &s, sizeof(s));
94
+ return true;
95
}
96
+
97
+ return false;
98
99
100
protected:
0 commit comments