Skip to content

Commit 29b52d6

Browse files
fixup! readapting ConnectionHandlerInterface to use setting struct
1 parent ab8fbcb commit 29b52d6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ConnectionHandlerInterface.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,16 @@ class ConnectionHandler {
8585
* Update the interface settings. This can be performed only when the interface is
8686
* in INIT state. otherwise nothing is performed. The type of the interface should match
8787
* the type of the settings provided
88+
*
89+
* @return true if the update is successfull, false otherwise
8890
*/
89-
virtual void updateSetting(const models::NetworkSetting& s) {
91+
virtual bool updateSetting(const models::NetworkSetting& s) {
9092
if(_current_net_connection_state == NetworkConnectionState::INIT && s.type == _interface) {
9193
memcpy(&_settings, &s, sizeof(s));
94+
return true;
9295
}
96+
97+
return false;
9398
}
9499

95100
protected:

0 commit comments

Comments
 (0)