Mir
input_probe.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015-2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Andreas Pokorny <andreas.pokorny@canonical.com>
17  */
18 
19 #ifndef MIR_INPUT_PROBE_H_
20 #define MIR_INPUT_PROBE_H_
21 
22 #include "mir/module_deleter.h"
23 
24 namespace mir
25 {
26 namespace graphics { class Platform; }
27 namespace options
28 {
29 class Option;
30 }
31 class EmergencyCleanupRegistry;
32 class SharedLibraryProberReport;
33 
34 namespace input
35 {
36 class InputReport;
37 class Platform;
38 class InputDeviceRegistry;
39 
41  options::Option const& options, std::shared_ptr<EmergencyCleanupRegistry> const& emergency_cleanup,
42  std::shared_ptr<InputDeviceRegistry> const& device_registry, std::shared_ptr<InputReport> const& input_report,
43  SharedLibraryProberReport & prober_report);
44 
47  graphics::Platform const& graphics_platform,
48  options::Option const& options, std::shared_ptr<EmergencyCleanupRegistry> const& emergency_cleanup,
49  std::shared_ptr<InputDeviceRegistry> const& device_registry, std::shared_ptr<InputReport> const& input_report)
51 }
52 }
53 
54 #endif
All things Mir.
Definition: atomic_callback.h:25
std::unique_ptr< T, ModuleDeleter< T >> UniqueModulePtr
Use UniqueModulePtr to ensure that your loadable libray outlives instances created within it...
Definition: module_deleter.h:83
mir::UniqueModulePtr< Platform > probe_input_platforms(options::Option const &options, std::shared_ptr< EmergencyCleanupRegistry > const &emergency_cleanup, std::shared_ptr< InputDeviceRegistry > const &device_registry, std::shared_ptr< InputReport > const &input_report, SharedLibraryProberReport &prober_report)
auto input_platform_from_graphics_module(graphics::Platform const &graphics_platform, options::Option const &options, std::shared_ptr< EmergencyCleanupRegistry > const &emergency_cleanup, std::shared_ptr< InputDeviceRegistry > const &device_registry, std::shared_ptr< InputReport > const &input_report) -> mir::UniqueModulePtr< Platform >
Tries to create an input platform from the graphics module, otherwise returns a null pointer...
Definition: input_probe.cpp:103

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016