Merge lp:~alan-griffiths/mir/reboot-0.26.3-release into lp:~mir-team/mir/0.26-old
- reboot-0.26.3-release
- Merge into 0.26-old
Proposed by
Alan Griffiths
Status: | Merged |
---|---|
Approved by: | Gerry Boland |
Approved revision: | no longer in the source branch. |
Merged at revision: | 4066 |
Proposed branch: | lp:~alan-griffiths/mir/reboot-0.26.3-release |
Merge into: | lp:~mir-team/mir/0.26-old |
Diff against target: |
398 lines (+72/-44) 11 files modified
debian/control (+2/-2) debian/rules (+1/-1) include/client/mir/event_printer.h (+5/-5) include/client/mir/events/event_builders.h (+10/-10) include/client/mir_toolkit/client_types.h (+2/-6) include/client/mir_toolkit/events/keymap_event.h (+1/-1) include/client/mir_toolkit/events/surface_event.h (+1/-1) include/client/mir_toolkit/rs/mir_render_surface.h (+46/-11) include/core/mir_toolkit/deprecations.h (+2/-2) src/common/events/input_configuration_event.cpp (+1/-3) src/include/common/mir/events/input_configuration_event.h (+1/-2) |
To merge this branch: | bzr merge lp:~alan-griffiths/mir/reboot-0.26.3-release |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gerry Boland (community) | Approve | ||
Review via email: mp+324662@code.launchpad.net |
This proposal supersedes a proposal from 2017-05-26.
Commit message
Restore platforms that are unsupported in xenial, add support for building downstreams on, and re-sync deprecation macros with current development.
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'debian/control' | |||
2 | --- debian/control 2017-05-08 11:05:10 +0000 | |||
3 | +++ debian/control 2017-05-26 09:20:39 +0000 | |||
4 | @@ -24,8 +24,8 @@ | |||
5 | 24 | libprotobuf-dev, | 24 | libprotobuf-dev, |
6 | 25 | pkg-config, | 25 | pkg-config, |
7 | 26 | android-headers-23, | 26 | android-headers-23, |
10 | 27 | libhardware-dev [i386 amd64 armhf], | 27 | libhardware-dev [i386 amd64 armhf arm64], |
11 | 28 | libandroid-properties-dev [i386 amd64 armhf], | 28 | libandroid-properties-dev [i386 amd64 armhf arm64], |
12 | 29 | libgoogle-glog-dev, | 29 | libgoogle-glog-dev, |
13 | 30 | liblttng-ust-dev, | 30 | liblttng-ust-dev, |
14 | 31 | libxkbcommon-dev (>= 0.5), | 31 | libxkbcommon-dev (>= 0.5), |
15 | 32 | 32 | ||
16 | === modified file 'debian/rules' | |||
17 | --- debian/rules 2017-05-08 09:48:26 +0000 | |||
18 | +++ debian/rules 2017-05-26 09:20:39 +0000 | |||
19 | @@ -34,7 +34,7 @@ | |||
20 | 34 | endif | 34 | endif |
21 | 35 | 35 | ||
22 | 36 | override_dh_auto_configure: | 36 | override_dh_auto_configure: |
24 | 37 | ifneq ($(filter armhf,$(DEB_HOST_ARCH)),) | 37 | ifneq ($(filter armhf arm64,$(DEB_HOST_ARCH)),) |
25 | 38 | dh_auto_configure -- \ | 38 | dh_auto_configure -- \ |
26 | 39 | $(COMMON_CONFIGURE_OPTIONS) \ | 39 | $(COMMON_CONFIGURE_OPTIONS) \ |
27 | 40 | -DMIR_RUN_ACCEPTANCE_TESTS=OFF \ | 40 | -DMIR_RUN_ACCEPTANCE_TESTS=OFF \ |
28 | 41 | 41 | ||
29 | === modified file 'include/client/mir/event_printer.h' | |||
30 | --- include/client/mir/event_printer.h 2017-01-19 05:30:03 +0000 | |||
31 | +++ include/client/mir/event_printer.h 2017-05-26 09:20:39 +0000 | |||
32 | @@ -35,19 +35,19 @@ | |||
33 | 35 | std::ostream& operator<<(std::ostream& out, MirOrientation orientation); | 35 | std::ostream& operator<<(std::ostream& out, MirOrientation orientation); |
34 | 36 | 36 | ||
35 | 37 | std::ostream& operator<<(std::ostream& out, MirSurfaceAttrib attribute) | 37 | std::ostream& operator<<(std::ostream& out, MirSurfaceAttrib attribute) |
37 | 38 | __attribute__ ((deprecated("use << with MirWindowAttrib instead"))); | 38 | MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowAttrib instead"); |
38 | 39 | std::ostream& operator<<(std::ostream& out, MirWindowAttrib attribute); | 39 | std::ostream& operator<<(std::ostream& out, MirWindowAttrib attribute); |
39 | 40 | std::ostream& operator<<(std::ostream& out, MirSurfaceFocusState state) | 40 | std::ostream& operator<<(std::ostream& out, MirSurfaceFocusState state) |
41 | 41 | __attribute__ ((deprecated("use << with MirWindowFocusState instead"))); | 41 | MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowFocusState instead"); |
42 | 42 | std::ostream& operator<<(std::ostream& out, MirWindowFocusState state); | 42 | std::ostream& operator<<(std::ostream& out, MirWindowFocusState state); |
43 | 43 | std::ostream& operator<<(std::ostream& out, MirSurfaceVisibility state) | 43 | std::ostream& operator<<(std::ostream& out, MirSurfaceVisibility state) |
45 | 44 | __attribute__ ((deprecated("use << with MirWindowVisibility instead"))); | 44 | MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowVisibility instead"); |
46 | 45 | std::ostream& operator<<(std::ostream& out, MirWindowVisibility state); | 45 | std::ostream& operator<<(std::ostream& out, MirWindowVisibility state); |
47 | 46 | std::ostream& operator<<(std::ostream& out, MirSurfaceType type) | 46 | std::ostream& operator<<(std::ostream& out, MirSurfaceType type) |
49 | 47 | __attribute__ ((deprecated("use << with MirWindowType instead"))); | 47 | MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowType instead"); |
50 | 48 | std::ostream& operator<<(std::ostream& out, MirWindowType type); | 48 | std::ostream& operator<<(std::ostream& out, MirWindowType type); |
51 | 49 | std::ostream& operator<<(std::ostream& out, MirSurfaceState state) | 49 | std::ostream& operator<<(std::ostream& out, MirSurfaceState state) |
53 | 50 | __attribute__ ((deprecated("use << with MirWindowState instead"))); | 50 | MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowState instead"); |
54 | 51 | std::ostream& operator<<(std::ostream& out, MirWindowState state); | 51 | std::ostream& operator<<(std::ostream& out, MirWindowState state); |
55 | 52 | 52 | ||
56 | 53 | std::ostream& operator<<(std::ostream& out, MirPromptSessionEvent const& event); | 53 | std::ostream& operator<<(std::ostream& out, MirPromptSessionEvent const& event); |
57 | 54 | 54 | ||
58 | === modified file 'include/client/mir/events/event_builders.h' | |||
59 | --- include/client/mir/events/event_builders.h 2017-01-19 05:30:03 +0000 | |||
60 | +++ include/client/mir/events/event_builders.h 2017-05-26 09:20:39 +0000 | |||
61 | @@ -48,7 +48,7 @@ | |||
62 | 48 | EventUPtr make_event(frontend::SurfaceId const& surface_id, geometry::Size const& size); | 48 | EventUPtr make_event(frontend::SurfaceId const& surface_id, geometry::Size const& size); |
63 | 49 | // Surface configure event | 49 | // Surface configure event |
64 | 50 | EventUPtr make_event(frontend::SurfaceId const& surface_id, MirSurfaceAttrib attribute, int value) | 50 | EventUPtr make_event(frontend::SurfaceId const& surface_id, MirSurfaceAttrib attribute, int value) |
66 | 51 | __attribute__ ((deprecated("use make_event with MirWindowAttribute instead"))); | 51 | MIR_FOR_REMOVAL_IN_VERSION_1("use make_event with MirWindowAttribute instead"); |
67 | 52 | // Window configure event | 52 | // Window configure event |
68 | 53 | EventUPtr make_event(frontend::SurfaceId const& surface_id, MirWindowAttrib attribute, int value); | 53 | EventUPtr make_event(frontend::SurfaceId const& surface_id, MirWindowAttrib attribute, int value); |
69 | 54 | // Close surface event | 54 | // Close surface event |
70 | @@ -81,12 +81,12 @@ | |||
71 | 81 | // Deprecated version with uint64_t mac | 81 | // Deprecated version with uint64_t mac |
72 | 82 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, | 82 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, |
73 | 83 | uint64_t mac, MirKeyboardAction action, xkb_keysym_t key_code, | 83 | uint64_t mac, MirKeyboardAction action, xkb_keysym_t key_code, |
75 | 84 | int scan_code, MirInputEventModifiers modifiers) __attribute__ ((deprecated)); | 84 | int scan_code, MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused"); |
76 | 85 | 85 | ||
77 | 86 | // Deprecated version without mac | 86 | // Deprecated version without mac |
78 | 87 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, | 87 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, |
79 | 88 | MirKeyboardAction action, xkb_keysym_t key_code, | 88 | MirKeyboardAction action, xkb_keysym_t key_code, |
81 | 89 | int scan_code, MirInputEventModifiers modifiers) __attribute__ ((deprecated)); | 89 | int scan_code, MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused"); |
82 | 90 | 90 | ||
83 | 91 | // Touch event | 91 | // Touch event |
84 | 92 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, | 92 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, |
85 | @@ -94,11 +94,11 @@ | |||
86 | 94 | 94 | ||
87 | 95 | // Deprecated version with uint64_t mac | 95 | // Deprecated version with uint64_t mac |
88 | 96 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, | 96 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, |
90 | 97 | uint64_t mac, MirInputEventModifiers modifiers) __attribute__ ((deprecated)); | 97 | uint64_t mac, MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused"); |
91 | 98 | 98 | ||
92 | 99 | // Deprecated version without mac | 99 | // Deprecated version without mac |
93 | 100 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, | 100 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, |
95 | 101 | MirInputEventModifiers modifiers) __attribute__ ((deprecated)); | 101 | MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused"); |
96 | 102 | 102 | ||
97 | 103 | void add_touch(MirEvent &event, MirTouchId touch_id, MirTouchAction action, | 103 | void add_touch(MirEvent &event, MirTouchId touch_id, MirTouchAction action, |
98 | 104 | MirTouchTooltype tooltype, float x_axis_value, float y_axis_value, | 104 | MirTouchTooltype tooltype, float x_axis_value, float y_axis_value, |
99 | @@ -110,14 +110,14 @@ | |||
100 | 110 | uint64_t mac, MirInputEventModifiers modifiers, MirPointerAction action, | 110 | uint64_t mac, MirInputEventModifiers modifiers, MirPointerAction action, |
101 | 111 | MirPointerButtons buttons_pressed, | 111 | MirPointerButtons buttons_pressed, |
102 | 112 | float x_axis_value, float y_axis_value, | 112 | float x_axis_value, float y_axis_value, |
104 | 113 | float hscroll_value, float vscroll_value) __attribute__ ((deprecated)); | 113 | float hscroll_value, float vscroll_value) MIR_FOR_REMOVAL_IN_VERSION_1("unused"); |
105 | 114 | 114 | ||
106 | 115 | // Deprecated version without relative axis and mac | 115 | // Deprecated version without relative axis and mac |
107 | 116 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, | 116 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, |
108 | 117 | MirInputEventModifiers modifiers, MirPointerAction action, | 117 | MirInputEventModifiers modifiers, MirPointerAction action, |
109 | 118 | MirPointerButtons buttons_pressed, | 118 | MirPointerButtons buttons_pressed, |
110 | 119 | float x_axis_value, float y_axis_value, | 119 | float x_axis_value, float y_axis_value, |
112 | 120 | float hscroll_value, float vscroll_value) __attribute__ ((deprecated)); | 120 | float hscroll_value, float vscroll_value) MIR_FOR_REMOVAL_IN_VERSION_1("unused"); |
113 | 121 | 121 | ||
114 | 122 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, | 122 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, |
115 | 123 | std::vector<uint8_t> const& mac, MirInputEventModifiers modifiers, MirPointerAction action, | 123 | std::vector<uint8_t> const& mac, MirInputEventModifiers modifiers, MirPointerAction action, |
116 | @@ -132,7 +132,7 @@ | |||
117 | 132 | MirPointerButtons buttons_pressed, | 132 | MirPointerButtons buttons_pressed, |
118 | 133 | float x_axis_value, float y_axis_value, | 133 | float x_axis_value, float y_axis_value, |
119 | 134 | float hscroll_value, float vscroll_value, | 134 | float hscroll_value, float vscroll_value, |
121 | 135 | float relative_x_value, float relative_y_value) __attribute__ ((deprecated)); | 135 | float relative_x_value, float relative_y_value) MIR_FOR_REMOVAL_IN_VERSION_1("unused"); |
122 | 136 | 136 | ||
123 | 137 | // Deprecated version without mac | 137 | // Deprecated version without mac |
124 | 138 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, | 138 | EventUPtr make_event(MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, |
125 | @@ -140,11 +140,11 @@ | |||
126 | 140 | MirPointerButtons buttons_pressed, | 140 | MirPointerButtons buttons_pressed, |
127 | 141 | float x_axis_value, float y_axis_value, | 141 | float x_axis_value, float y_axis_value, |
128 | 142 | float hscroll_value, float vscroll_value, | 142 | float hscroll_value, float vscroll_value, |
130 | 143 | float relative_x_value, float relative_y_value) __attribute__ ((deprecated)); | 143 | float relative_x_value, float relative_y_value) MIR_FOR_REMOVAL_IN_VERSION_1("unused"); |
131 | 144 | 144 | ||
132 | 145 | // Input configuration event | 145 | // Input configuration event |
133 | 146 | EventUPtr make_event(MirInputConfigurationAction action, | 146 | EventUPtr make_event(MirInputConfigurationAction action, |
135 | 147 | MirInputDeviceId id, std::chrono::nanoseconds time) __attribute__((deprecated)); | 147 | MirInputDeviceId id, std::chrono::nanoseconds time) MIR_FOR_REMOVAL_IN_VERSION_1("unused"); |
136 | 148 | 148 | ||
137 | 149 | EventUPtr make_event(std::chrono::nanoseconds timestamp, | 149 | EventUPtr make_event(std::chrono::nanoseconds timestamp, |
138 | 150 | MirPointerButtons pointer_buttons, | 150 | MirPointerButtons pointer_buttons, |
139 | 151 | 151 | ||
140 | === modified file 'include/client/mir_toolkit/client_types.h' | |||
141 | --- include/client/mir_toolkit/client_types.h 2017-04-24 13:11:01 +0000 | |||
142 | +++ include/client/mir_toolkit/client_types.h 2017-05-26 09:20:39 +0000 | |||
143 | @@ -54,8 +54,7 @@ | |||
144 | 54 | typedef struct MirError MirError; | 54 | typedef struct MirError MirError; |
145 | 55 | typedef struct MirPresentationChain MirPresentationChain; | 55 | typedef struct MirPresentationChain MirPresentationChain; |
146 | 56 | typedef struct MirBuffer MirBuffer; | 56 | typedef struct MirBuffer MirBuffer; |
149 | 57 | typedef struct MirRenderSurface MirRenderSurface | 57 | typedef struct MirRenderSurface MirRenderSurface; |
148 | 58 | MIR_FOR_REMOVAL_IN_VERSION_1("This type is slated for rename due to MirRenderSurface-->MirSurface transition"); | ||
150 | 59 | 58 | ||
151 | 60 | /** | 59 | /** |
152 | 61 | * Descriptor for an output connection. | 60 | * Descriptor for an output connection. |
153 | @@ -202,7 +201,7 @@ | |||
154 | 202 | * use the value mir_display_output_id_invalid. | 201 | * use the value mir_display_output_id_invalid. |
155 | 203 | */ | 202 | */ |
156 | 204 | uint32_t output_id; | 203 | uint32_t output_id; |
158 | 205 | } MirSurfaceParameters MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowParameters instead"); | 204 | } MirSurfaceParameters MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_get apis or listen for attribute events instead"); |
159 | 206 | 205 | ||
160 | 207 | enum { mir_platform_package_max = 32 }; | 206 | enum { mir_platform_package_max = 32 }; |
161 | 208 | 207 | ||
162 | @@ -556,9 +555,6 @@ | |||
163 | 556 | MirSurface* surface, MirPersistentId* id, void* context) | 555 | MirSurface* surface, MirPersistentId* id, void* context) |
164 | 557 | MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowIdCallback instead"); | 556 | MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowIdCallback instead"); |
165 | 558 | 557 | ||
166 | 559 | typedef void (*MirRenderSurfaceCallback)(MirRenderSurface*, void* context) | ||
167 | 560 | MIR_FOR_REMOVAL_IN_VERSION_1("This type is slated for rename due to MirRenderSurface-->MirSurface transition"); | ||
168 | 561 | |||
169 | 562 | typedef MirSurfaceParameters MirWindowParameters; | 558 | typedef MirSurfaceParameters MirWindowParameters; |
170 | 563 | 559 | ||
171 | 564 | #pragma GCC diagnostic pop | 560 | #pragma GCC diagnostic pop |
172 | 565 | 561 | ||
173 | === modified file 'include/client/mir_toolkit/events/keymap_event.h' | |||
174 | --- include/client/mir_toolkit/events/keymap_event.h 2017-01-18 02:29:37 +0000 | |||
175 | +++ include/client/mir_toolkit/events/keymap_event.h 2017-05-26 09:20:39 +0000 | |||
176 | @@ -42,7 +42,7 @@ | |||
177 | 42 | */ | 42 | */ |
178 | 43 | void mir_keymap_event_get_rules(MirKeymapEvent const* ev, | 43 | void mir_keymap_event_get_rules(MirKeymapEvent const* ev, |
179 | 44 | struct xkb_rule_names* rules) | 44 | struct xkb_rule_names* rules) |
181 | 45 | __attribute__ ((deprecated)); | 45 | MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_keymap_event_get_keymap_buffer() instead"); |
182 | 46 | 46 | ||
183 | 47 | /** | 47 | /** |
184 | 48 | * Retrieve the new keymap reported by this MirKeymapEvent | 48 | * Retrieve the new keymap reported by this MirKeymapEvent |
185 | 49 | 49 | ||
186 | === modified file 'include/client/mir_toolkit/events/surface_event.h' | |||
187 | --- include/client/mir_toolkit/events/surface_event.h 2017-04-24 12:52:42 +0000 | |||
188 | +++ include/client/mir_toolkit/events/surface_event.h 2017-05-26 09:20:39 +0000 | |||
189 | @@ -49,7 +49,7 @@ | |||
190 | 49 | * \return The associated attribute value | 49 | * \return The associated attribute value |
191 | 50 | */ | 50 | */ |
192 | 51 | int mir_surface_event_get_attribute_value(MirSurfaceEvent const* event) | 51 | int mir_surface_event_get_attribute_value(MirSurfaceEvent const* event) |
194 | 52 | MIR_FOR_REMOVAL_IN_VERSION_1("use make_event with mir_window_event_get_attribute_value instead"); | 52 | MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_event_get_attribute_value with MirWindowEvent instead"); |
195 | 53 | #pragma GCC diagnostic pop | 53 | #pragma GCC diagnostic pop |
196 | 54 | 54 | ||
197 | 55 | #ifdef __cplusplus | 55 | #ifdef __cplusplus |
198 | 56 | 56 | ||
199 | === modified file 'include/client/mir_toolkit/rs/mir_render_surface.h' | |||
200 | --- include/client/mir_toolkit/rs/mir_render_surface.h 2017-04-24 12:52:42 +0000 | |||
201 | +++ include/client/mir_toolkit/rs/mir_render_surface.h 2017-05-26 09:20:39 +0000 | |||
202 | @@ -23,6 +23,17 @@ | |||
203 | 23 | #include <mir_toolkit/client_types.h> | 23 | #include <mir_toolkit/client_types.h> |
204 | 24 | #include <mir_toolkit/deprecations.h> | 24 | #include <mir_toolkit/deprecations.h> |
205 | 25 | 25 | ||
206 | 26 | #ifndef MIR_DEPRECATE_RENDERSURFACES | ||
207 | 27 | #define MIR_DEPRECATE_RENDERSURFACES 0 | ||
208 | 28 | #endif | ||
209 | 29 | |||
210 | 30 | #if MIR_ENABLE_DEPRECATIONS > 0 && MIR_DEPRECATE_RENDERSURFACES > 0 | ||
211 | 31 | #define MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME\ | ||
212 | 32 | __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition"))) | ||
213 | 33 | #else | ||
214 | 34 | #define MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME | ||
215 | 35 | #endif | ||
216 | 36 | |||
217 | 26 | #ifdef __cplusplus | 37 | #ifdef __cplusplus |
218 | 27 | /** | 38 | /** |
219 | 28 | * \addtogroup mir_toolkit | 39 | * \addtogroup mir_toolkit |
220 | @@ -31,6 +42,9 @@ | |||
221 | 31 | extern "C" { | 42 | extern "C" { |
222 | 32 | #endif | 43 | #endif |
223 | 33 | 44 | ||
224 | 45 | typedef void (*MirRenderSurfaceCallback)(MirRenderSurface*, void* context) | ||
225 | 46 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; | ||
226 | 47 | |||
227 | 34 | #pragma GCC diagnostic push | 48 | #pragma GCC diagnostic push |
228 | 35 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | 49 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" |
229 | 36 | /** | 50 | /** |
230 | @@ -50,7 +64,7 @@ | |||
231 | 50 | int width, int height, | 64 | int width, int height, |
232 | 51 | MirRenderSurfaceCallback callback, | 65 | MirRenderSurfaceCallback callback, |
233 | 52 | void* context) | 66 | void* context) |
235 | 53 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 67 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
236 | 54 | 68 | ||
237 | 55 | /** | 69 | /** |
238 | 56 | * Create a render surface and wait for the result | 70 | * Create a render surface and wait for the result |
239 | @@ -65,7 +79,7 @@ | |||
240 | 65 | MirRenderSurface* mir_connection_create_render_surface_sync( | 79 | MirRenderSurface* mir_connection_create_render_surface_sync( |
241 | 66 | MirConnection* connection, | 80 | MirConnection* connection, |
242 | 67 | int width, int height) | 81 | int width, int height) |
244 | 68 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 82 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
245 | 69 | 83 | ||
246 | 70 | /** | 84 | /** |
247 | 71 | * Get the size of the MirRenderSurface | 85 | * Get the size of the MirRenderSurface |
248 | @@ -77,7 +91,7 @@ | |||
249 | 77 | void mir_render_surface_get_size( | 91 | void mir_render_surface_get_size( |
250 | 78 | MirRenderSurface* render_surface, | 92 | MirRenderSurface* render_surface, |
251 | 79 | int* width, int* height) | 93 | int* width, int* height) |
253 | 80 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 94 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
254 | 81 | 95 | ||
255 | 82 | /** | 96 | /** |
256 | 83 | * Set the size of the MirRenderSurface | 97 | * Set the size of the MirRenderSurface |
257 | @@ -89,7 +103,7 @@ | |||
258 | 89 | void mir_render_surface_set_size( | 103 | void mir_render_surface_set_size( |
259 | 90 | MirRenderSurface* render_surface, | 104 | MirRenderSurface* render_surface, |
260 | 91 | int width, int height) | 105 | int width, int height) |
262 | 92 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 106 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
263 | 93 | 107 | ||
264 | 94 | /** | 108 | /** |
265 | 95 | * Test for a valid render surface | 109 | * Test for a valid render surface |
266 | @@ -101,8 +115,7 @@ | |||
267 | 101 | */ | 115 | */ |
268 | 102 | bool mir_render_surface_is_valid( | 116 | bool mir_render_surface_is_valid( |
269 | 103 | MirRenderSurface* render_surface) | 117 | MirRenderSurface* render_surface) |
272 | 104 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 118 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
271 | 105 | |||
273 | 106 | /** | 119 | /** |
274 | 107 | * Retrieve a text description of the error. The returned string is owned by | 120 | * Retrieve a text description of the error. The returned string is owned by |
275 | 108 | * the library and remains valid until the render surface or the associated | 121 | * the library and remains valid until the render surface or the associated |
276 | @@ -114,7 +127,7 @@ | |||
277 | 114 | */ | 127 | */ |
278 | 115 | char const *mir_render_surface_get_error_message( | 128 | char const *mir_render_surface_get_error_message( |
279 | 116 | MirRenderSurface* render_surface) | 129 | MirRenderSurface* render_surface) |
281 | 117 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 130 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
282 | 118 | 131 | ||
283 | 119 | /** | 132 | /** |
284 | 120 | * Release the specified render surface | 133 | * Release the specified render surface |
285 | @@ -123,7 +136,7 @@ | |||
286 | 123 | */ | 136 | */ |
287 | 124 | void mir_render_surface_release( | 137 | void mir_render_surface_release( |
288 | 125 | MirRenderSurface* render_surface) | 138 | MirRenderSurface* render_surface) |
290 | 126 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 139 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
291 | 127 | 140 | ||
292 | 128 | /** | 141 | /** |
293 | 129 | * Obtain the buffer stream backing a given render surface. | 142 | * Obtain the buffer stream backing a given render surface. |
294 | @@ -143,7 +156,7 @@ | |||
295 | 143 | MirRenderSurface* render_surface, | 156 | MirRenderSurface* render_surface, |
296 | 144 | int width, int height, | 157 | int width, int height, |
297 | 145 | MirPixelFormat format) | 158 | MirPixelFormat format) |
299 | 146 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 159 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
300 | 147 | 160 | ||
301 | 148 | /** | 161 | /** |
302 | 149 | * Obtain the presentation chain backing a given render surface. | 162 | * Obtain the presentation chain backing a given render surface. |
303 | @@ -156,7 +169,7 @@ | |||
304 | 156 | */ | 169 | */ |
305 | 157 | MirPresentationChain* mir_render_surface_get_presentation_chain( | 170 | MirPresentationChain* mir_render_surface_get_presentation_chain( |
306 | 158 | MirRenderSurface* render_surface) | 171 | MirRenderSurface* render_surface) |
308 | 159 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 172 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
309 | 160 | 173 | ||
310 | 161 | /** Query whether the server supports a given presentation mode. | 174 | /** Query whether the server supports a given presentation mode. |
311 | 162 | * | 175 | * |
312 | @@ -190,7 +203,29 @@ | |||
313 | 190 | MirWindowSpec* spec, | 203 | MirWindowSpec* spec, |
314 | 191 | MirRenderSurface* render_surface, | 204 | MirRenderSurface* render_surface, |
315 | 192 | int hotspot_x, int hotspot_y) | 205 | int hotspot_x, int hotspot_y) |
317 | 193 | MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition"); | 206 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; |
318 | 207 | |||
319 | 208 | /** | ||
320 | 209 | * Set the MirWindowSpec to display content contained in a render surface | ||
321 | 210 | * | ||
322 | 211 | * \warning: The initial call to mir_window_spec_add_render_surface will set | ||
323 | 212 | * the bottom-most content, and subsequent calls will stack the | ||
324 | 213 | * content on top. | ||
325 | 214 | * | ||
326 | 215 | * \param spec The window_spec to be updated | ||
327 | 216 | * \param render_surface The render surface containing the content to be displayed | ||
328 | 217 | * \param logical_width The width that the content will be displayed at | ||
329 | 218 | * (Ignored for buffer streams) | ||
330 | 219 | * \param logical_height The height that the content will be displayed at | ||
331 | 220 | * (Ignored for buffer streams) | ||
332 | 221 | * \param displacement_x The x displacement from the top-left corner of the MirWindow | ||
333 | 222 | * \param displacement_y The y displacement from the top-left corner of the MirWindow | ||
334 | 223 | */ | ||
335 | 224 | void mir_window_spec_add_render_surface(MirWindowSpec* spec, | ||
336 | 225 | MirRenderSurface* render_surface, | ||
337 | 226 | int logical_width, int logical_height, | ||
338 | 227 | int displacement_x, int displacement_y) | ||
339 | 228 | MIR_DEPRECATE_RENDERSURFACES_FOR_RENAME; | ||
340 | 194 | 229 | ||
341 | 195 | #pragma GCC diagnostic pop | 230 | #pragma GCC diagnostic pop |
342 | 196 | 231 | ||
343 | 197 | 232 | ||
344 | === modified file 'include/core/mir_toolkit/deprecations.h' | |||
345 | --- include/core/mir_toolkit/deprecations.h 2017-04-25 09:32:01 +0000 | |||
346 | +++ include/core/mir_toolkit/deprecations.h 2017-05-26 09:20:39 +0000 | |||
347 | @@ -18,8 +18,8 @@ | |||
348 | 18 | #define MIR_DEPRECATIONS_H_ | 18 | #define MIR_DEPRECATIONS_H_ |
349 | 19 | 19 | ||
350 | 20 | #ifndef MIR_ENABLE_DEPRECATIONS | 20 | #ifndef MIR_ENABLE_DEPRECATIONS |
353 | 21 | // use __GNUC__ < 6 as a proxy for building on Ubunutu 16.04LTS ("Xenial") | 21 | // use g++ version < 6.2 as a proxy for building on Ubunutu 16.04LTS ("Xenial") or 16.10 (Yakkety) |
354 | 22 | #if defined(__clang__) || !defined(__GNUC__) || (__GNUC__ >= 6) | 22 | #if defined(__clang__) || !defined(__GNUC__) || (__GNUC__ > 6) || ((__GNUC__ == 6) && (__GNUC_MINOR__ >= 2)) |
355 | 23 | #define MIR_ENABLE_DEPRECATIONS 1 | 23 | #define MIR_ENABLE_DEPRECATIONS 1 |
356 | 24 | #else | 24 | #else |
357 | 25 | #define MIR_ENABLE_DEPRECATIONS 0 | 25 | #define MIR_ENABLE_DEPRECATIONS 0 |
358 | 26 | 26 | ||
359 | === modified file 'src/common/events/input_configuration_event.cpp' | |||
360 | --- src/common/events/input_configuration_event.cpp 2017-01-20 16:27:50 +0000 | |||
361 | +++ src/common/events/input_configuration_event.cpp 2017-05-26 09:20:39 +0000 | |||
362 | @@ -18,13 +18,12 @@ | |||
363 | 18 | 18 | ||
364 | 19 | #include "mir/events/input_configuration_event.h" | 19 | #include "mir/events/input_configuration_event.h" |
365 | 20 | 20 | ||
366 | 21 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
367 | 21 | MirInputConfigurationEvent::MirInputConfigurationEvent() | 22 | MirInputConfigurationEvent::MirInputConfigurationEvent() |
368 | 22 | { | 23 | { |
369 | 23 | event.initInputConfiguration(); | 24 | event.initInputConfiguration(); |
370 | 24 | } | 25 | } |
371 | 25 | 26 | ||
372 | 26 | #pragma GCC diagnostic push | ||
373 | 27 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
374 | 28 | MirInputConfigurationAction MirInputConfigurationEvent::action() const | 27 | MirInputConfigurationAction MirInputConfigurationEvent::action() const |
375 | 29 | { | 28 | { |
376 | 30 | return static_cast<MirInputConfigurationAction>(event.asReader().getInputConfiguration().getAction()); | 29 | return static_cast<MirInputConfigurationAction>(event.asReader().getInputConfiguration().getAction()); |
377 | @@ -34,7 +33,6 @@ | |||
378 | 34 | { | 33 | { |
379 | 35 | event.getInputConfiguration().setAction(static_cast<mir::capnp::InputConfigurationEvent::Action>(action)); | 34 | event.getInputConfiguration().setAction(static_cast<mir::capnp::InputConfigurationEvent::Action>(action)); |
380 | 36 | } | 35 | } |
381 | 37 | #pragma GCC diagnostic pop | ||
382 | 38 | 36 | ||
383 | 39 | std::chrono::nanoseconds MirInputConfigurationEvent::when() const | 37 | std::chrono::nanoseconds MirInputConfigurationEvent::when() const |
384 | 40 | { | 38 | { |
385 | 41 | 39 | ||
386 | === modified file 'src/include/common/mir/events/input_configuration_event.h' | |||
387 | --- src/include/common/mir/events/input_configuration_event.h 2017-01-20 16:27:50 +0000 | |||
388 | +++ src/include/common/mir/events/input_configuration_event.h 2017-05-26 09:20:39 +0000 | |||
389 | @@ -37,8 +37,7 @@ | |||
390 | 37 | 37 | ||
391 | 38 | MirInputDeviceId id() const; | 38 | MirInputDeviceId id() const; |
392 | 39 | void set_id(MirInputDeviceId id); | 39 | void set_id(MirInputDeviceId id); |
395 | 40 | } | 40 | }; |
394 | 41 | __attribute__((deprecated)); | ||
396 | 42 | #pragma GCC diagnostic pop | 41 | #pragma GCC diagnostic pop |
397 | 43 | 42 | ||
398 | 44 | #endif /* MIR_COMMON_INPUT_CONFIGURATION_EVENT_H_ */ | 43 | #endif /* MIR_COMMON_INPUT_CONFIGURATION_EVENT_H_ */ |
looks good