refactor: Arch, only define init override on windows, where its ambiguious
This commit is contained in:
parent
6153f64fb7
commit
02fb9915bf
2 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
* Deskflow -- mouse and keyboard sharing utility
|
||||||
|
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
||||||
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
|
|
@ -30,13 +31,13 @@ Arch::Arch(Arch *arch)
|
||||||
s_instance = arch;
|
s_instance = arch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SYSAPI_WIN32
|
||||||
void Arch::init()
|
void Arch::init()
|
||||||
{
|
{
|
||||||
ARCH_NETWORK::init();
|
ARCH_NETWORK::init();
|
||||||
#if SYSAPI_WIN32
|
|
||||||
ArchMiscWindows::init();
|
ArchMiscWindows::init();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Arch *Arch::getInstance()
|
Arch *Arch::getInstance()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
* Deskflow -- mouse and keyboard sharing utility
|
||||||
|
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
||||||
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
|
|
@ -66,12 +67,14 @@ public:
|
||||||
explicit Arch(Arch *arch);
|
explicit Arch(Arch *arch);
|
||||||
~Arch() override = default;
|
~Arch() override = default;
|
||||||
|
|
||||||
|
#if SYSAPI_WIN32
|
||||||
//! Call init on other arch classes.
|
//! Call init on other arch classes.
|
||||||
/*!
|
/*!
|
||||||
Some arch classes depend on others to exist first. When init is called
|
Some arch classes depend on others to exist first. When init is called
|
||||||
these classes will have ARCH available for use.
|
these classes will have ARCH available for use.
|
||||||
*/
|
*/
|
||||||
void init() override;
|
void init() override;
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// accessors
|
// accessors
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue