Mir

Merge lp:~alan-griffiths/mir/optional-deprecations into lp:~mir-team/mir/0.26-old

Proposed by Alan Griffiths
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 4055
Proposed branch: lp:~alan-griffiths/mir/optional-deprecations
Merge into: lp:~mir-team/mir/0.26-old
Diff against target: 1397 lines (+217/-154)
22 files modified
debian/changelog (+2/-0)
include/client/mir_toolkit/client_types.h (+23/-22)
include/client/mir_toolkit/debug/surface.h (+4/-3)
include/client/mir_toolkit/events/event.h (+11/-10)
include/client/mir_toolkit/events/input_configuration_event.h (+8/-4)
include/client/mir_toolkit/events/surface_event.h (+3/-2)
include/client/mir_toolkit/events/surface_output_event.h (+6/-5)
include/client/mir_toolkit/events/surface_placement.h (+2/-1)
include/client/mir_toolkit/mir_blob.h (+3/-2)
include/client/mir_toolkit/mir_buffer_stream.h (+3/-1)
include/client/mir_toolkit/mir_connection.h (+9/-8)
include/client/mir_toolkit/mir_cursor_configuration.h (+2/-1)
include/client/mir_toolkit/mir_display_configuration.h (+3/-2)
include/client/mir_toolkit/mir_persistent_id.h (+5/-4)
include/client/mir_toolkit/mir_platform_message.h (+8/-7)
include/client/mir_toolkit/mir_screencast.h (+2/-1)
include/client/mir_toolkit/mir_surface.h (+61/-60)
include/client/mir_toolkit/mir_wait.h (+3/-2)
include/client/mir_toolkit/mir_window.h (+4/-3)
include/client/mir_toolkit/rs/mir_render_surface.h (+11/-10)
include/core/mir_toolkit/common.h (+8/-6)
include/core/mir_toolkit/deprecations.h (+36/-0)
To merge this branch: bzr merge lp:~alan-griffiths/mir/optional-deprecations
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Approve
Alberto Aguirre (community) Approve
Review via email: mp+323039@code.launchpad.net

Commit message

Make deprecations optional and default to off for builds on 16.04LTS

Description of the change

We want to push 0.26 to 16.04LTS

libmirserver dependencies will break, but we don't need them. We can just replace the packages.

libmirclient dependencies don't have an ABI break, but we have deprecated APIs they may use.

The intent of this MP is to avoid these deprecations when building for 16.04LTS

To post a comment you must log in.
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

The pragmatic approach, yeah.

So will this be a 0.26.4 ? We had a 0.26.3 version ready in lp:mir/0.26 that was not released at all.

review: Approve
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> The pragmatic approach, yeah.
>
> So will this be a 0.26.4 ? We had a 0.26.3 version ready in lp:mir/0.26 that
> was not released at all.

Oh right. I see no harm including that.

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Sweet, this lgtm

review: Approve
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I've tried installing this onto a 16.04 laptop and building a few of the downstream packages from source it doesn't appear to break anything at runtime.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2017-03-30 06:38:36 +0000
+++ debian/changelog 2017-04-25 09:32:38 +0000
@@ -1,6 +1,8 @@
1mir (0.26.3-0ubuntu1) UNRELEASED; urgency=medium1mir (0.26.3-0ubuntu1) UNRELEASED; urgency=medium
22
3 * New upstream release 0.26.3 (https://launchpad.net/mir/+milestone/0.26.3)3 * New upstream release 0.26.3 (https://launchpad.net/mir/+milestone/0.26.3)
4 - Enhancements:
5 . Make deprecations optional (and default to off for builds on 16.04LTS)
4 - Bugs fixed:6 - Bugs fixed:
5 . unity-system-compositor crashed with SIGSEGV in7 . unity-system-compositor crashed with SIGSEGV in
6 libinput_device_config_accel_is_available() from8 libinput_device_config_accel_is_available() from
79
=== modified file 'include/client/mir_toolkit/client_types.h'
--- include/client/mir_toolkit/client_types.h 2017-03-16 16:47:21 +0000
+++ include/client/mir_toolkit/client_types.h 2017-04-25 09:32:38 +0000
@@ -23,6 +23,7 @@
2323
24#include <mir_toolkit/events/event.h>24#include <mir_toolkit/events/event.h>
25#include <mir_toolkit/common.h>25#include <mir_toolkit/common.h>
26#include <mir_toolkit/deprecations.h>
2627
27#include <stddef.h>28#include <stddef.h>
2829
@@ -38,15 +39,15 @@
38typedef void* MirEGLNativeWindowType;39typedef void* MirEGLNativeWindowType;
39typedef void* MirEGLNativeDisplayType;40typedef void* MirEGLNativeDisplayType;
40typedef struct MirConnection MirConnection;41typedef struct MirConnection MirConnection;
41typedef struct MirSurface MirSurface __attribute__((deprecated("Use MirWindow instead")));42typedef struct MirSurface MirSurface MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindow instead");
42typedef struct MirSurface MirWindow;43typedef struct MirSurface MirWindow;
43typedef struct MirSurfaceSpec MirSurfaceSpec __attribute__((deprecated("Use MirWindowSpec instead")));44typedef struct MirSurfaceSpec MirSurfaceSpec MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowSpec instead");
44typedef struct MirSurfaceSpec MirWindowSpec;45typedef struct MirSurfaceSpec MirWindowSpec;
45typedef struct MirScreencast MirScreencast;46typedef struct MirScreencast MirScreencast;
46typedef struct MirScreencastSpec MirScreencastSpec;47typedef struct MirScreencastSpec MirScreencastSpec;
47typedef struct MirPromptSession MirPromptSession;48typedef struct MirPromptSession MirPromptSession;
48typedef struct MirBufferStream MirBufferStream;49typedef struct MirBufferStream MirBufferStream;
49typedef struct MirPersistentId MirPersistentId __attribute((deprecated("Use MirWindowId instead")));50typedef struct MirPersistentId MirPersistentId MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowId instead");
50typedef struct MirPersistentId MirWindowId;51typedef struct MirPersistentId MirWindowId;
51typedef struct MirBlob MirBlob;52typedef struct MirBlob MirBlob;
52typedef struct MirDisplayConfig MirDisplayConfig;53typedef struct MirDisplayConfig MirDisplayConfig;
@@ -54,7 +55,7 @@
54typedef struct MirPresentationChain MirPresentationChain;55typedef struct MirPresentationChain MirPresentationChain;
55typedef struct MirBuffer MirBuffer;56typedef struct MirBuffer MirBuffer;
56typedef struct MirRenderSurface MirRenderSurface57typedef struct MirRenderSurface MirRenderSurface
57__attribute__((deprecated("This type is slated for rename due to MirRenderSurface-->MirSurface transition")));58MIR_FOR_REMOVAL_IN_VERSION_1("This type is slated for rename due to MirRenderSurface-->MirSurface transition");
5859
59/**60/**
60 * Descriptor for an output connection.61 * Descriptor for an output connection.
@@ -82,7 +83,7 @@
82typedef void (*MirConnectedCallback)(83typedef void (*MirConnectedCallback)(
83 MirConnection *connection, void *client_context);84 MirConnection *connection, void *client_context);
84typedef MirConnectedCallback mir_connected_callback85typedef MirConnectedCallback mir_connected_callback
85 __attribute__((deprecated("Use MirConnectedCallback instead")));86 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirConnectedCallback instead");
8687
87/**88/**
88 * Callback to be passed when calling window functions :89 * Callback to be passed when calling window functions :
@@ -102,7 +103,7 @@
102typedef void (*MirBufferStreamCallback)(103typedef void (*MirBufferStreamCallback)(
103 MirBufferStream *stream, void *client_context);104 MirBufferStream *stream, void *client_context);
104typedef MirBufferStreamCallback mir_buffer_stream_callback105typedef MirBufferStreamCallback mir_buffer_stream_callback
105 __attribute__((deprecated("Use MirBufferStreamCallback instead")));106 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirBufferStreamCallback instead");
106107
107/**108/**
108 * Callback for handling of window events.109 * Callback for handling of window events.
@@ -124,7 +125,7 @@
124typedef void (*MirLifecycleEventCallback)(125typedef void (*MirLifecycleEventCallback)(
125 MirConnection* connection, MirLifecycleState state, void* context);126 MirConnection* connection, MirLifecycleState state, void* context);
126typedef MirLifecycleEventCallback mir_lifecycle_event_callback127typedef MirLifecycleEventCallback mir_lifecycle_event_callback
127 __attribute__((deprecated("Use MirLifecycleEventCallback instead")));128 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirLifecycleEventCallback instead");
128129
129/**130/**
130 * Callback called when the server pings for responsiveness testing.131 * Callback called when the server pings for responsiveness testing.
@@ -136,7 +137,7 @@
136typedef void (*MirPingEventCallback)(137typedef void (*MirPingEventCallback)(
137 MirConnection* connection, int32_t serial, void* context);138 MirConnection* connection, int32_t serial, void* context);
138typedef MirPingEventCallback mir_ping_event_callback139typedef MirPingEventCallback mir_ping_event_callback
139 __attribute__((deprecated("Use MirPingEventCallback instead")));140 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirPingEventCallback instead");
140141
141/**142/**
142 * Callback called when a display config change has occurred143 * Callback called when a display config change has occurred
@@ -147,7 +148,7 @@
147typedef void (*MirDisplayConfigCallback)(148typedef void (*MirDisplayConfigCallback)(
148 MirConnection* connection, void* context);149 MirConnection* connection, void* context);
149typedef MirDisplayConfigCallback mir_display_config_callback150typedef MirDisplayConfigCallback mir_display_config_callback
150 __attribute__((deprecated("Use MirDisplayConfigCallback instead")));151 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirDisplayConfigCallback instead");
151152
152/**153/**
153 * Callback called when a request for client file descriptors completes154 * Callback called when a request for client file descriptors completes
@@ -162,7 +163,7 @@
162typedef void (*MirClientFdCallback)(163typedef void (*MirClientFdCallback)(
163 MirPromptSession *prompt_session, size_t count, int const* fds, void* context);164 MirPromptSession *prompt_session, size_t count, int const* fds, void* context);
164typedef MirClientFdCallback mir_client_fd_callback165typedef MirClientFdCallback mir_client_fd_callback
165 __attribute__((deprecated("Use MirClientFdCallback instead")));166 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirClientFdCallback instead");
166167
167#pragma GCC diagnostic push168#pragma GCC diagnostic push
168#pragma GCC diagnostic ignored "-Wdeprecated-declarations"169#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
@@ -201,7 +202,7 @@
201 * use the value mir_display_output_id_invalid.202 * use the value mir_display_output_id_invalid.
202 */203 */
203 uint32_t output_id;204 uint32_t output_id;
204} MirSurfaceParameters __attribute__((deprecated("Use MirWindowParameters instead")));205} MirSurfaceParameters MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowParameters instead");
205206
206enum { mir_platform_package_max = 32 };207enum { mir_platform_package_max = 32 };
207208
@@ -214,7 +215,7 @@
214 * \todo This should be removed from the public API at the next API break.215 * \todo This should be removed from the public API at the next API break.
215 */216 */
216#ifndef __cplusplus217#ifndef __cplusplus
217__attribute__ ((deprecated))218MIR_FOR_REMOVAL_IN_VERSION_1("Use of this type is inherently non-portable")
218#endif219#endif
219typedef enum MirPlatformType220typedef enum MirPlatformType
220{221{
@@ -429,7 +430,7 @@
429typedef void (*MirScreencastCallback)(430typedef void (*MirScreencastCallback)(
430 MirScreencast *screencast, void *client_context);431 MirScreencast *screencast, void *client_context);
431typedef MirScreencastCallback mir_screencast_callback432typedef MirScreencastCallback mir_screencast_callback
432 __attribute__((deprecated("Use MirScreencastCallback instead")));433 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirScreencastCallback instead");
433434
434/**435/**
435 * Callback member of MirPromptSession for handling of prompt sessions.436 * Callback member of MirPromptSession for handling of prompt sessions.
@@ -439,7 +440,7 @@
439typedef void (*MirPromptSessionCallback)(440typedef void (*MirPromptSessionCallback)(
440 MirPromptSession* prompt_provider, void* context);441 MirPromptSession* prompt_provider, void* context);
441typedef MirPromptSessionCallback mir_prompt_session_callback442typedef MirPromptSessionCallback mir_prompt_session_callback
442 __attribute__((deprecated("Use MirPromptSessionCallback instead")));443 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirPromptSessionCallback instead");
443444
444/**445/**
445 * Callback member of MirPromptSession for handling of prompt sessions events.446 * Callback member of MirPromptSession for handling of prompt sessions events.
@@ -452,7 +453,7 @@
452 void* context);453 void* context);
453typedef MirPromptSessionStateChangeCallback454typedef MirPromptSessionStateChangeCallback
454 mir_prompt_session_state_change_callback455 mir_prompt_session_state_change_callback
455 __attribute__((deprecated("Use MirPromptSessionStateChangeCallback instead")));456 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirPromptSessionStateChangeCallback instead");
456457
457/**458/**
458 * Callback called when a platform operation completes.459 * Callback called when a platform operation completes.
@@ -467,7 +468,7 @@
467typedef void (*MirPlatformOperationCallback)(468typedef void (*MirPlatformOperationCallback)(
468 MirConnection* connection, MirPlatformMessage* reply, void* context);469 MirConnection* connection, MirPlatformMessage* reply, void* context);
469typedef MirPlatformOperationCallback mir_platform_operation_callback470typedef MirPlatformOperationCallback mir_platform_operation_callback
470 __attribute__((deprecated("Use MirPlatformOperationCallback instead")));471 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirPlatformOperationCallback instead");
471472
472/**473/**
473 * Callback called when a change of input devices has occurred474 * Callback called when a change of input devices has occurred
@@ -479,7 +480,7 @@
479typedef void (*MirInputConfigCallback)(480typedef void (*MirInputConfigCallback)(
480 MirConnection* connection, void* context);481 MirConnection* connection, void* context);
481typedef MirInputConfigCallback mir_input_config_callback482typedef MirInputConfigCallback mir_input_config_callback
482 __attribute__((deprecated("Use MirInputConfigCallback instead")));483 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirInputConfigCallback instead");
483484
484typedef void (*MirBufferCallback)(MirBuffer*, void* context);485typedef void (*MirBufferCallback)(MirBuffer*, void* context);
485486
@@ -539,24 +540,24 @@
539typedef void (*MirErrorCallback)(540typedef void (*MirErrorCallback)(
540 MirConnection* connection, MirError const* error, void* context);541 MirConnection* connection, MirError const* error, void* context);
541typedef MirErrorCallback mir_error_callback542typedef MirErrorCallback mir_error_callback
542 __attribute__((deprecated("Use MirErrorCallback instead")));543 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirErrorCallback instead");
543544
544#pragma GCC diagnostic push545#pragma GCC diagnostic push
545#pragma GCC diagnostic ignored "-Wdeprecated-declarations"546#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
546547
547typedef void (*mir_surface_callback)(MirSurface *surface, void *client_context)548typedef void (*mir_surface_callback)(MirSurface *surface, void *client_context)
548__attribute__((deprecated("Use MirWindowCallback instead")));549MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowCallback instead");
549550
550typedef void (*mir_surface_event_callback)(551typedef void (*mir_surface_event_callback)(
551 MirSurface* surface, MirEvent const* event, void* context)552 MirSurface* surface, MirEvent const* event, void* context)
552__attribute__((deprecated("Use MirWindowEventCallback instead")));553MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowEventCallback instead");
553554
554typedef void (*mir_surface_id_callback)(555typedef void (*mir_surface_id_callback)(
555 MirSurface* surface, MirPersistentId* id, void* context)556 MirSurface* surface, MirPersistentId* id, void* context)
556__attribute__((deprecated("Use MirWindowIdCallback instead")));557MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowIdCallback instead");
557558
558typedef void (*MirRenderSurfaceCallback)(MirRenderSurface*, void* context)559typedef void (*MirRenderSurfaceCallback)(MirRenderSurface*, void* context)
559__attribute__((deprecated("This type is slated for rename due to MirRenderSurface-->MirSurface transition")));560MIR_FOR_REMOVAL_IN_VERSION_1("This type is slated for rename due to MirRenderSurface-->MirSurface transition");
560561
561typedef MirSurfaceParameters MirWindowParameters;562typedef MirSurfaceParameters MirWindowParameters;
562563
563564
=== modified file 'include/client/mir_toolkit/debug/surface.h'
--- include/client/mir_toolkit/debug/surface.h 2017-01-18 04:43:15 +0000
+++ include/client/mir_toolkit/debug/surface.h 2017-04-25 09:32:38 +0000
@@ -19,6 +19,7 @@
19#define MIR_CLIENT_LIBRARY_DEBUG_H19#define MIR_CLIENT_LIBRARY_DEBUG_H
2020
21#include <mir_toolkit/mir_client_library.h>21#include <mir_toolkit/mir_client_library.h>
22#include <mir_toolkit/deprecations.h>
2223
23/* This header defines debug interfaces that aren't expected to be generally useful24/* This header defines debug interfaces that aren't expected to be generally useful
24 * and do not have the same API-stability guarantees that the main API has */25 * and do not have the same API-stability guarantees that the main API has */
@@ -65,13 +66,13 @@
65bool mir_debug_surface_coords_to_screen(MirSurface *surface,66bool mir_debug_surface_coords_to_screen(MirSurface *surface,
66 int x, int y,67 int x, int y,
67 int* screen_x, int* screen_y)68 int* screen_x, int* screen_y)
68__attribute__((deprecated("Use mir_extension_window_coordinate_translation instead")));69MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_extension_window_coordinate_translation instead");
6970
70int mir_debug_surface_id(MirSurface *surface)71int mir_debug_surface_id(MirSurface *surface)
71__attribute__((deprecated("Use mir_debug_window_id() instead")));72MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_debug_window_id() instead");
7273
73uint32_t mir_debug_surface_current_buffer_id(MirSurface *surface)74uint32_t mir_debug_surface_current_buffer_id(MirSurface *surface)
74__attribute__((deprecated("Use mir_debug_window_current_buffer_id() instead")));75MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_debug_window_current_buffer_id() instead");
7576
76#pragma GCC diagnostic pop77#pragma GCC diagnostic pop
7778
7879
=== modified file 'include/client/mir_toolkit/events/event.h'
--- include/client/mir_toolkit/events/event.h 2017-01-25 08:12:00 +0000
+++ include/client/mir_toolkit/events/event.h 2017-04-25 09:32:38 +0000
@@ -22,6 +22,7 @@
22#include <stddef.h>22#include <stddef.h>
23#include <stdint.h>23#include <stdint.h>
24#include "mir_toolkit/common.h"24#include "mir_toolkit/common.h"
25#include <mir_toolkit/deprecations.h>
2526
26#ifdef __cplusplus27#ifdef __cplusplus
27/**28/**
@@ -58,24 +59,24 @@
58#pragma GCC diagnostic pop59#pragma GCC diagnostic pop
5960
60typedef struct MirSurfaceEvent MirSurfaceEvent61typedef struct MirSurfaceEvent MirSurfaceEvent
61 __attribute__ ((deprecated("use MirWindowEvent instead")));62 MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowEvent instead");
62typedef struct MirSurfaceEvent MirWindowEvent;63typedef struct MirSurfaceEvent MirWindowEvent;
63typedef struct MirResizeEvent MirResizeEvent;64typedef struct MirResizeEvent MirResizeEvent;
64typedef struct MirPromptSessionEvent MirPromptSessionEvent;65typedef struct MirPromptSessionEvent MirPromptSessionEvent;
65typedef struct MirOrientationEvent MirOrientationEvent;66typedef struct MirOrientationEvent MirOrientationEvent;
66typedef struct MirCloseSurfaceEvent MirCloseSurfaceEvent67typedef struct MirCloseSurfaceEvent MirCloseSurfaceEvent
67 __attribute__ ((deprecated("use MirCloseWindowEvent instead")));68 MIR_FOR_REMOVAL_IN_VERSION_1("use MirCloseWindowEvent instead");
68typedef struct MirCloseSurfaceEvent MirCloseWindowEvent;69typedef struct MirCloseSurfaceEvent MirCloseWindowEvent;
69typedef struct MirInputEvent MirInputEvent;70typedef struct MirInputEvent MirInputEvent;
70typedef struct MirKeymapEvent MirKeymapEvent;71typedef struct MirKeymapEvent MirKeymapEvent;
71typedef struct MirInputConfigurationEvent MirInputConfigurationEvent 72typedef struct MirInputConfigurationEvent MirInputConfigurationEvent
72 __attribute__ ((deprecated("Use MirInputDeviceStateEvent and the MirInputConfig callback instead")));73 MIR_FOR_REMOVAL_IN_VERSION_1("Use MirInputDeviceStateEvent and the MirInputConfig callback instead");
73typedef struct MirSurfaceOutputEvent MirSurfaceOutputEvent74typedef struct MirSurfaceOutputEvent MirSurfaceOutputEvent
74 __attribute__ ((deprecated("use MirWindowOutputEvent instead")));75 MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowOutputEvent instead");
75typedef struct MirSurfaceOutputEvent MirWindowOutputEvent;76typedef struct MirSurfaceOutputEvent MirWindowOutputEvent;
76typedef struct MirInputDeviceStateEvent MirInputDeviceStateEvent;77typedef struct MirInputDeviceStateEvent MirInputDeviceStateEvent;
77typedef struct MirSurfacePlacementEvent MirSurfacePlacementEvent78typedef struct MirSurfacePlacementEvent MirSurfacePlacementEvent
78 __attribute__ ((deprecated("use MirWindowPlacementEvent instead")));79 MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowPlacementEvent instead");
79typedef struct MirSurfacePlacementEvent MirWindowPlacementEvent;80typedef struct MirSurfacePlacementEvent MirWindowPlacementEvent;
8081
81typedef struct MirCookie MirCookie;82typedef struct MirCookie MirCookie;
@@ -136,7 +137,7 @@
136 * \return The associated MirSurfaceEvent137 * \return The associated MirSurfaceEvent
137 */138 */
138MirSurfaceEvent const* mir_event_get_surface_event(MirEvent const* event)139MirSurfaceEvent const* mir_event_get_surface_event(MirEvent const* event)
139__attribute__ ((deprecated("use mir_event_get_window_event instead")));140MIR_FOR_REMOVAL_IN_VERSION_1("use mir_event_get_window_event instead");
140141
141/**142/**
142 * Retrieve the MirWindowEvent associated with a MirEvent of143 * Retrieve the MirWindowEvent associated with a MirEvent of
@@ -195,7 +196,7 @@
195 * \return The associated MirCloseSurfaceEvent196 * \return The associated MirCloseSurfaceEvent
196 */197 */
197/// @cond198/// @cond
198__attribute__ ((deprecated))199MIR_FOR_REMOVAL_IN_VERSION_1("Use of this function is pointless as there is no way to use the return value")
199/// @endcond200/// @endcond
200MirCloseSurfaceEvent const* mir_event_get_close_surface_event(MirEvent const* event);201MirCloseSurfaceEvent const* mir_event_get_close_surface_event(MirEvent const* event);
201#pragma GCC diagnostic pop202#pragma GCC diagnostic pop
@@ -223,7 +224,7 @@
223 * \return The associated MirInputConfigurationEvent224 * \return The associated MirInputConfigurationEvent
224 */225 */
225/// @cond226/// @cond
226__attribute__((deprecated))227MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback")
227/// @endcond228/// @endcond
228MirInputConfigurationEvent const* mir_event_get_input_configuration_event(MirEvent const* event);229MirInputConfigurationEvent const* mir_event_get_input_configuration_event(MirEvent const* event);
229#pragma GCC diagnostic pop230#pragma GCC diagnostic pop
@@ -242,7 +243,7 @@
242 * \return The associated MirSurfaceOutputEvent243 * \return The associated MirSurfaceOutputEvent
243 */244 */
244MirSurfaceOutputEvent const* mir_event_get_surface_output_event(MirEvent const* event)245MirSurfaceOutputEvent const* mir_event_get_surface_output_event(MirEvent const* event)
245__attribute__((deprecated("use mir_event_get_window_output_event")));246MIR_FOR_REMOVAL_IN_VERSION_1("use mir_event_get_window_output_event");
246247
247/**248/**
248 * Retrieve the MirWindowOutputEvent associated with a MirEvent of type249 * Retrieve the MirWindowOutputEvent associated with a MirEvent of type
@@ -279,7 +280,7 @@
279 * \return The associated MirSurfacePlacementEvent280 * \return The associated MirSurfacePlacementEvent
280 */281 */
281MirSurfacePlacementEvent const* mir_event_get_surface_placement_event(MirEvent const* event)282MirSurfacePlacementEvent const* mir_event_get_surface_placement_event(MirEvent const* event)
282__attribute__((deprecated("use mir_event_get_window_placement_event")));283MIR_FOR_REMOVAL_IN_VERSION_1("use mir_event_get_window_placement_event");
283284
284/**285/**
285 * Retrieve the MirWindowPlacementEvent associated with a MirEvent of286 * Retrieve the MirWindowPlacementEvent associated with a MirEvent of
286287
=== modified file 'include/client/mir_toolkit/events/input_configuration_event.h'
--- include/client/mir_toolkit/events/input_configuration_event.h 2017-01-20 16:27:50 +0000
+++ include/client/mir_toolkit/events/input_configuration_event.h 2017-04-25 09:32:38 +0000
@@ -20,6 +20,7 @@
20#define MIR_TOOLKIT_EVENTS_INPUT_CONFIGURATION_EVENT_H_20#define MIR_TOOLKIT_EVENTS_INPUT_CONFIGURATION_EVENT_H_
2121
22#include <mir_toolkit/events/event.h>22#include <mir_toolkit/events/event.h>
23#include <mir_toolkit/deprecations.h>
2324
24#ifdef __cplusplus25#ifdef __cplusplus
25/**26/**
@@ -45,7 +46,7 @@
45 mir_input_configuration_action_configuration_changed,46 mir_input_configuration_action_configuration_changed,
46 mir_input_configuration_action_device_reset47 mir_input_configuration_action_device_reset
47} MirInputConfigurationAction48} MirInputConfigurationAction
48__attribute__((deprecated));49MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
4950
50#pragma GCC diagnostic push51#pragma GCC diagnostic push
51#pragma GCC diagnostic ignored "-Wdeprecated-declarations"52#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
@@ -55,7 +56,8 @@
55 * \param[in] ev The input configuration event56 * \param[in] ev The input configuration event
56 * \return The action57 * \return The action
57 */58 */
58MirInputConfigurationAction mir_input_configuration_event_get_action(MirInputConfigurationEvent const* ev) __attribute__((deprecated));59MirInputConfigurationAction mir_input_configuration_event_get_action(MirInputConfigurationEvent const* ev)
60MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
5961
60/**62/**
61 * Retreive the time associated with a MirInputConfiguration event63 * Retreive the time associated with a MirInputConfiguration event
@@ -63,7 +65,8 @@
63 * \param[in] ev The input configuration event65 * \param[in] ev The input configuration event
64 * \return The time in nanoseconds since epoch66 * \return The time in nanoseconds since epoch
65 */67 */
66int64_t mir_input_configuration_event_get_time(MirInputConfigurationEvent const* ev) __attribute__((deprecated));68int64_t mir_input_configuration_event_get_time(MirInputConfigurationEvent const* ev)
69MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
6770
68/**71/**
69 * Retreive the device id associated with a MirInputConfiguration event72 * Retreive the device id associated with a MirInputConfiguration event
@@ -71,7 +74,8 @@
71 * \param[in] ev The input configuration event74 * \param[in] ev The input configuration event
72 * \return The device id or -1 if not applicable to events of this action75 * \return The device id or -1 if not applicable to events of this action
73 */76 */
74MirInputDeviceId mir_input_configuration_event_get_device_id(MirInputConfigurationEvent const* ev) __attribute__((deprecated));77MirInputDeviceId mir_input_configuration_event_get_device_id(MirInputConfigurationEvent const* ev)
78MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
75#pragma GCC diagnostic pop79#pragma GCC diagnostic pop
7680
77#ifdef __cplusplus81#ifdef __cplusplus
7882
=== modified file 'include/client/mir_toolkit/events/surface_event.h'
--- include/client/mir_toolkit/events/surface_event.h 2017-01-23 03:38:33 +0000
+++ include/client/mir_toolkit/events/surface_event.h 2017-04-25 09:32:38 +0000
@@ -20,6 +20,7 @@
20#define MIR_TOOLKIT_EVENTS_SURFACE_EVENT_H_20#define MIR_TOOLKIT_EVENTS_SURFACE_EVENT_H_
2121
22#include <mir_toolkit/events/event.h>22#include <mir_toolkit/events/event.h>
23#include <mir_toolkit/deprecations.h>
2324
24#ifdef __cplusplus25#ifdef __cplusplus
25/**26/**
@@ -39,7 +40,7 @@
39 * \return The associated attribute40 * \return The associated attribute
40 */41 */
41MirSurfaceAttrib mir_surface_event_get_attribute(MirSurfaceEvent const* event)42MirSurfaceAttrib mir_surface_event_get_attribute(MirSurfaceEvent const* event)
42__attribute__ ((deprecated("use mir_window_event_get_attribute instead")));43MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_event_get_attribute instead");
4344
44/**45/**
45 * Retrieve the new value of the associated attribute for a given MirSurfaceEvent46 * Retrieve the new value of the associated attribute for a given MirSurfaceEvent
@@ -48,7 +49,7 @@
48 * \return The associated attribute value49 * \return The associated attribute value
49 */50 */
50int mir_surface_event_get_attribute_value(MirSurfaceEvent const* event)51int mir_surface_event_get_attribute_value(MirSurfaceEvent const* event)
51__attribute__ ((deprecated("use make_event with mir_window_event_get_attribute_value instead")));52MIR_FOR_REMOVAL_IN_VERSION_1("use make_event with mir_window_event_get_attribute_value instead");
52#pragma GCC diagnostic pop53#pragma GCC diagnostic pop
5354
54#ifdef __cplusplus55#ifdef __cplusplus
5556
=== modified file 'include/client/mir_toolkit/events/surface_output_event.h'
--- include/client/mir_toolkit/events/surface_output_event.h 2017-01-23 03:38:33 +0000
+++ include/client/mir_toolkit/events/surface_output_event.h 2017-04-25 09:32:38 +0000
@@ -20,6 +20,7 @@
20#define MIR_TOOLKIT_SURFACE_OUTPUT_EVENT_H_20#define MIR_TOOLKIT_SURFACE_OUTPUT_EVENT_H_
2121
22#include <mir_toolkit/events/event.h>22#include <mir_toolkit/events/event.h>
23#include <mir_toolkit/deprecations.h>
2324
24#ifdef __cplusplus25#ifdef __cplusplus
25/**26/**
@@ -39,7 +40,7 @@
39 * \return The new DPI value for the surface is primarily on.40 * \return The new DPI value for the surface is primarily on.
40 */41 */
41int mir_surface_output_event_get_dpi(MirSurfaceOutputEvent const* ev)42int mir_surface_output_event_get_dpi(MirSurfaceOutputEvent const* ev)
42__attribute__ ((deprecated("use mir_window_output_event_get_dpi instead")));43MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_output_event_get_dpi instead");
4344
44/**45/**
45 * Retrieve the form factor of the new output configuration of a MirSurfaceOutputEvent46 * Retrieve the form factor of the new output configuration of a MirSurfaceOutputEvent
@@ -48,7 +49,7 @@
48 * \return The new form factor of the output the surface is primarily on.49 * \return The new form factor of the output the surface is primarily on.
49 */50 */
50MirFormFactor mir_surface_output_event_get_form_factor(MirSurfaceOutputEvent const* ev)51MirFormFactor mir_surface_output_event_get_form_factor(MirSurfaceOutputEvent const* ev)
51__attribute__ ((deprecated("use mir_window_output_event_get_form_factor instead")));52MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_output_event_get_form_factor instead");
5253
53/**54/**
54 * Retrieve the suggested scaling factor of the new output configuration of a55 * Retrieve the suggested scaling factor of the new output configuration of a
@@ -58,7 +59,7 @@
58 * \return The new scaling factor of the output the surface is primarily on.59 * \return The new scaling factor of the output the surface is primarily on.
59 */60 */
60float mir_surface_output_event_get_scale(MirSurfaceOutputEvent const* ev)61float mir_surface_output_event_get_scale(MirSurfaceOutputEvent const* ev)
61__attribute__ ((deprecated("use mir_window_output_event_get_scale instead")));62MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_output_event_get_scale instead");
6263
63/**64/**
64 * Retrieve the maximum refresh rate of the output(s) associated with a65 * Retrieve the maximum refresh rate of the output(s) associated with a
@@ -70,7 +71,7 @@
70 * \return The refresh rate in Hz71 * \return The refresh rate in Hz
71 */72 */
72double mir_surface_output_event_get_refresh_rate(MirSurfaceOutputEvent const* ev)73double mir_surface_output_event_get_refresh_rate(MirSurfaceOutputEvent const* ev)
73__attribute__ ((deprecated("use mir_window_output_event_get_refresh_rate instead")));74MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_output_event_get_refresh_rate instead");
7475
75/**76/**
76 * Retrieve the ID of the output this surface is on from a MirSurfaceOutputEvent77 * Retrieve the ID of the output this surface is on from a MirSurfaceOutputEvent
@@ -80,7 +81,7 @@
80 * (From MirDisplayOutput::output_id)81 * (From MirDisplayOutput::output_id)
81 */82 */
82uint32_t mir_surface_output_event_get_output_id(MirSurfaceOutputEvent const *ev)83uint32_t mir_surface_output_event_get_output_id(MirSurfaceOutputEvent const *ev)
83__attribute__ ((deprecated("use mir_window_output_event_get_output_id instead")));84MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_output_event_get_output_id instead");
8485
85#pragma GCC diagnostic pop86#pragma GCC diagnostic pop
8687
8788
=== modified file 'include/client/mir_toolkit/events/surface_placement.h'
--- include/client/mir_toolkit/events/surface_placement.h 2017-01-19 05:30:03 +0000
+++ include/client/mir_toolkit/events/surface_placement.h 2017-04-25 09:32:38 +0000
@@ -20,6 +20,7 @@
20#define MIR_TOOLKIT_SURFACE_PLACEMENT_H_20#define MIR_TOOLKIT_SURFACE_PLACEMENT_H_
2121
22#include <mir_toolkit/client_types.h>22#include <mir_toolkit/client_types.h>
23#include <mir_toolkit/deprecations.h>
2324
24#ifdef __cplusplus25#ifdef __cplusplus
25/**26/**
@@ -38,7 +39,7 @@
38 * \return The position relative to the parent surface39 * \return The position relative to the parent surface
39 */40 */
40MirRectangle mir_surface_placement_get_relative_position(MirSurfacePlacementEvent const* event)41MirRectangle mir_surface_placement_get_relative_position(MirSurfacePlacementEvent const* event)
41__attribute__ ((deprecated("use mir_window_placement_get_relative_position instead")));42MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_placement_get_relative_position instead");
4243
43#ifdef __cplusplus44#ifdef __cplusplus
44}45}
4546
=== modified file 'include/client/mir_toolkit/mir_blob.h'
--- include/client/mir_toolkit/mir_blob.h 2017-01-19 05:30:03 +0000
+++ include/client/mir_toolkit/mir_blob.h 2017-04-25 09:32:38 +0000
@@ -19,6 +19,7 @@
19#define MIR_TOOLKIT_MIR_BLOB_H_19#define MIR_TOOLKIT_MIR_BLOB_H_
2020
21#include <mir_toolkit/client_types.h>21#include <mir_toolkit/client_types.h>
22#include <mir_toolkit/deprecations.h>
2223
23#ifdef __cplusplus24#ifdef __cplusplus
24/**25/**
@@ -35,7 +36,7 @@
35 * \return A blob36 * \return A blob
36 */37 */
37MirBlob* mir_blob_from_display_configuration(MirDisplayConfiguration* configuration)38MirBlob* mir_blob_from_display_configuration(MirDisplayConfiguration* configuration)
38__attribute__ ((deprecated("use mir_blob_from_display_config instead")));39MIR_FOR_REMOVAL_IN_VERSION_1("use mir_blob_from_display_config instead");
3940
40/**41/**
41 * Create a blob from a display config42 * Create a blob from a display config
@@ -65,7 +66,7 @@
65 * \return A display configuration66 * \return A display configuration
66 */67 */
67MirDisplayConfiguration* mir_blob_to_display_configuration(MirBlob* blob)68MirDisplayConfiguration* mir_blob_to_display_configuration(MirBlob* blob)
68__attribute__ ((deprecated("use mir_blob_to_display_config instead")));69MIR_FOR_REMOVAL_IN_VERSION_1("use mir_blob_to_display_config instead");
6970
70/**71/**
71 * Create a blob from a display config72 * Create a blob from a display config
7273
=== modified file 'include/client/mir_toolkit/mir_buffer_stream.h'
--- include/client/mir_toolkit/mir_buffer_stream.h 2017-01-24 07:49:13 +0000
+++ include/client/mir_toolkit/mir_buffer_stream.h 2017-04-25 09:32:38 +0000
@@ -20,6 +20,7 @@
2020
21#include <mir_toolkit/mir_native_buffer.h>21#include <mir_toolkit/mir_native_buffer.h>
22#include <mir_toolkit/client_types.h>22#include <mir_toolkit/client_types.h>
23#include <mir_toolkit/deprecations.h>
2324
24#ifdef __cplusplus25#ifdef __cplusplus
25/**26/**
@@ -141,7 +142,8 @@
141 * mir_platform_type_gbm142 * mir_platform_type_gbm
142 */143 */
143/// @cond144/// @cond
144__attribute__ ((deprecated))145MIR_FOR_REMOVAL_IN_VERSION_1("To identify the graphics platform use mir_connection_get_graphics_module(). \n"
146 "To safely interpret the buffer contents use mir_buffer_stream_get_graphics_region()")
145/// @endcond147/// @endcond
146MirPlatformType mir_buffer_stream_get_platform_type(MirBufferStream *stream);148MirPlatformType mir_buffer_stream_get_platform_type(MirBufferStream *stream);
147149
148150
=== modified file 'include/client/mir_toolkit/mir_connection.h'
--- include/client/mir_toolkit/mir_connection.h 2017-01-24 19:53:45 +0000
+++ include/client/mir_toolkit/mir_connection.h 2017-04-25 09:32:38 +0000
@@ -20,6 +20,7 @@
2020
21#include <mir_toolkit/client_types.h>21#include <mir_toolkit/client_types.h>
22#include <mir_toolkit/common.h>22#include <mir_toolkit/common.h>
23#include <mir_toolkit/deprecations.h>
2324
24#include <stdbool.h>25#include <stdbool.h>
2526
@@ -93,7 +94,7 @@
93 * \param [out] platform_package Structure to be populated94 * \param [out] platform_package Structure to be populated
94 */95 */
95void mir_connection_get_platform(MirConnection *connection, MirPlatformPackage *platform_package)96void mir_connection_get_platform(MirConnection *connection, MirPlatformPackage *platform_package)
96__attribute__((deprecated("use platform extensions instead")));97MIR_FOR_REMOVAL_IN_VERSION_1("use platform extensions instead");
9798
98/**99/**
99 * Query graphics platform module.100 * Query graphics platform module.
@@ -105,7 +106,7 @@
105 * \param [out] properties Structure to be populated106 * \param [out] properties Structure to be populated
106 */107 */
107void mir_connection_get_graphics_module(MirConnection *connection, MirModuleProperties *properties)108void mir_connection_get_graphics_module(MirConnection *connection, MirModuleProperties *properties)
108__attribute__((deprecated("use graphics module extension instead")));109MIR_FOR_REMOVAL_IN_VERSION_1("use graphics module extension instead");
109110
110/**111/**
111 * Register a callback to be called when a Lifecycle state change occurs.112 * Register a callback to be called when a Lifecycle state change occurs.
@@ -156,7 +157,7 @@
156 * \return structure that describes the display configuration157 * \return structure that describes the display configuration
157 */158 */
158MirDisplayConfiguration* mir_connection_create_display_config(MirConnection *connection)159MirDisplayConfiguration* mir_connection_create_display_config(MirConnection *connection)
159__attribute__ ((deprecated("use mir_connection_create_display_configuration instead")));160MIR_FOR_REMOVAL_IN_VERSION_1("use mir_connection_create_display_configuration instead");
160161
161/**162/**
162 * Query the display163 * Query the display
@@ -188,7 +189,7 @@
188 * \param [in] display_configuration The display_configuration information resource to be destroyed189 * \param [in] display_configuration The display_configuration information resource to be destroyed
189 */190 */
190void mir_display_config_destroy(MirDisplayConfiguration* display_configuration)191void mir_display_config_destroy(MirDisplayConfiguration* display_configuration)
191__attribute__ ((deprecated("use mir_display_config_release instead")));192MIR_FOR_REMOVAL_IN_VERSION_1("use mir_display_config_release instead");
192193
193/**194/**
194 * Apply the display configuration195 * Apply the display configuration
@@ -204,7 +205,7 @@
204 * \return A handle that can be passed to mir_wait_for205 * \return A handle that can be passed to mir_wait_for
205 */206 */
206MirWaitHandle* mir_connection_apply_display_config(MirConnection *connection, MirDisplayConfiguration* display_configuration)207MirWaitHandle* mir_connection_apply_display_config(MirConnection *connection, MirDisplayConfiguration* display_configuration)
207__attribute__ ((deprecated("use mir_connection_apply_session_display_config instead")));208MIR_FOR_REMOVAL_IN_VERSION_1("use mir_connection_apply_session_display_config instead");
208209
209/**210/**
210 * Apply the display config for the connection211 * Apply the display config for the connection
@@ -254,7 +255,7 @@
254MirWaitHandle* mir_connection_set_base_display_config(255MirWaitHandle* mir_connection_set_base_display_config(
255 MirConnection* connection,256 MirConnection* connection,
256 MirDisplayConfiguration const* display_configuration)257 MirDisplayConfiguration const* display_configuration)
257__attribute__ ((deprecated("use mir_connection_preview_base_display_configuration/mir_connection_confirm_base_display_configuration")));258MIR_FOR_REMOVAL_IN_VERSION_1("use mir_connection_preview_base_display_configuration/mir_connection_confirm_base_display_configuration");
258259
259260
260/**261/**
@@ -379,7 +380,7 @@
379 MirConnection* connection,380 MirConnection* connection,
380 MirPlatformMessage const* request,381 MirPlatformMessage const* request,
381 MirPlatformOperationCallback callback, void* context)382 MirPlatformOperationCallback callback, void* context)
382__attribute__ ((deprecated("use platform specific extensions instead")));383MIR_FOR_REMOVAL_IN_VERSION_1("use platform specific extensions instead");
383384
384/**385/**
385 * Create a snapshot of the attached input devices and device configurations.386 * Create a snapshot of the attached input devices and device configurations.
@@ -399,7 +400,7 @@
399 * \param [in] config The input configuration400 * \param [in] config The input configuration
400 */401 */
401void mir_input_config_destroy(MirInputConfig const* config)402void mir_input_config_destroy(MirInputConfig const* config)
402__attribute__ ((deprecated("use mir_input_config_release instead")));403MIR_FOR_REMOVAL_IN_VERSION_1("use mir_input_config_release instead");
403404
404/**405/**
405 * Release this snapshot of the input configuration.406 * Release this snapshot of the input configuration.
406407
=== modified file 'include/client/mir_toolkit/mir_cursor_configuration.h'
--- include/client/mir_toolkit/mir_cursor_configuration.h 2017-01-18 02:29:37 +0000
+++ include/client/mir_toolkit/mir_cursor_configuration.h 2017-04-25 09:32:38 +0000
@@ -20,6 +20,7 @@
2020
21#include <mir_toolkit/common.h>21#include <mir_toolkit/common.h>
22#include <mir_toolkit/client_types.h>22#include <mir_toolkit/client_types.h>
23#include <mir_toolkit/deprecations.h>
2324
24/**25/**
25 * Opaque structure containing cursor parameterization. Create with mir_cursor* family.26 * Opaque structure containing cursor parameterization. Create with mir_cursor* family.
@@ -53,7 +54,7 @@
53 * to_mir_cursor_configuration_destroy54 * to_mir_cursor_configuration_destroy
54 */55 */
55/// @cond56/// @cond
56__attribute__ ((deprecated))57MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_cursor_name()")
57/// @endcond58/// @endcond
58MirCursorConfiguration *mir_cursor_configuration_from_name(char const* name);59MirCursorConfiguration *mir_cursor_configuration_from_name(char const* name);
5960
6061
=== modified file 'include/client/mir_toolkit/mir_display_configuration.h'
--- include/client/mir_toolkit/mir_display_configuration.h 2017-02-20 05:36:21 +0000
+++ include/client/mir_toolkit/mir_display_configuration.h 2017-04-25 09:32:38 +0000
@@ -20,6 +20,7 @@
20#define MIR_TOOLKIT_MIR_DISPLAY_CONFIGURATION_H_20#define MIR_TOOLKIT_MIR_DISPLAY_CONFIGURATION_H_
2121
22#include "client_types.h"22#include "client_types.h"
23#include <mir_toolkit/deprecations.h>
2324
24#ifdef __cplusplus25#ifdef __cplusplus
25extern "C" {26extern "C" {
@@ -60,7 +61,7 @@
60 */61 */
61int mir_display_config_get_max_simultaneous_outputs(62int mir_display_config_get_max_simultaneous_outputs(
62 MirDisplayConfig const* config)63 MirDisplayConfig const* config)
63 __attribute__((deprecated("Not accurate in Mir 0.26 and later. May be removed in future.")));64 MIR_FOR_REMOVAL_IN_VERSION_1("Not accurate in Mir 0.26 and later. May be removed in future.");
6465
65/**66/**
66 * Get the number of outputs available in this display configuration.67 * Get the number of outputs available in this display configuration.
@@ -268,7 +269,7 @@
268 * \returns The name of the output type.269 * \returns The name of the output type.
269 */270 */
270char const* mir_display_output_type_name(MirDisplayOutputType type)271char const* mir_display_output_type_name(MirDisplayOutputType type)
271__attribute__((deprecated("use mir_output_type_name instead")));272MIR_FOR_REMOVAL_IN_VERSION_1("use mir_output_type_name instead");
272273
273/**274/**
274 * Get the textual name of an output type.275 * Get the textual name of an output type.
275276
=== modified file 'include/client/mir_toolkit/mir_persistent_id.h'
--- include/client/mir_toolkit/mir_persistent_id.h 2017-02-02 19:52:04 +0000
+++ include/client/mir_toolkit/mir_persistent_id.h 2017-04-25 09:32:38 +0000
@@ -19,6 +19,7 @@
19#define MIR_TOOLKIT_MIR_PERSISTENT_ID_H_19#define MIR_TOOLKIT_MIR_PERSISTENT_ID_H_
2020
21#include <mir_toolkit/client_types.h>21#include <mir_toolkit/client_types.h>
22#include <mir_toolkit/deprecations.h>
2223
23#include <stdbool.h>24#include <stdbool.h>
2425
@@ -39,7 +40,7 @@
39 * \note This does not guarantee that the ID refers to a currently valid object.40 * \note This does not guarantee that the ID refers to a currently valid object.
40 */41 */
41bool mir_persistent_id_is_valid(MirPersistentId* id)42bool mir_persistent_id_is_valid(MirPersistentId* id)
42__attribute__((deprecated("Use mir_window_id_is_valid() instead")));43MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_is_valid() instead");
4344
44/**45/**
45 * \brief Free a MirPersistentId46 * \brief Free a MirPersistentId
@@ -48,7 +49,7 @@
48 * object referred to by \arg id.49 * object referred to by \arg id.
49 */50 */
50void mir_persistent_id_release(MirPersistentId* id)51void mir_persistent_id_release(MirPersistentId* id)
51__attribute__((deprecated("Use mir_window_id_release() instead")));52MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_release() instead");
5253
53/**54/**
54 * \brief Get a string representation of a MirSurfaceId55 * \brief Get a string representation of a MirSurfaceId
@@ -59,7 +60,7 @@
59 * \see mir_surface_id_from_string60 * \see mir_surface_id_from_string
60 */61 */
61char const* mir_persistent_id_as_string(MirPersistentId* id)62char const* mir_persistent_id_as_string(MirPersistentId* id)
62__attribute__((deprecated("Use mir_window_id_as_string() instead")));63MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_as_string() instead");
6364
64/**65/**
65 * \brief Deserialise a string representation of a MirSurfaceId66 * \brief Deserialise a string representation of a MirSurfaceId
@@ -67,7 +68,7 @@
67 * \return The deserialised MirSurfaceId68 * \return The deserialised MirSurfaceId
68 */69 */
69MirPersistentId* mir_persistent_id_from_string(char const* string_representation)70MirPersistentId* mir_persistent_id_from_string(char const* string_representation)
70__attribute__((deprecated("Use mir_window_id_from_string() instead")));71MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_from_string() instead");
7172
72#pragma GCC diagnostic pop73#pragma GCC diagnostic pop
7374
7475
=== modified file 'include/client/mir_toolkit/mir_platform_message.h'
--- include/client/mir_toolkit/mir_platform_message.h 2017-01-18 02:29:37 +0000
+++ include/client/mir_toolkit/mir_platform_message.h 2017-04-25 09:32:38 +0000
@@ -19,6 +19,7 @@
19#define MIR_TOOLKIT_MIR_PLATFORM_MESSAGE_H_19#define MIR_TOOLKIT_MIR_PLATFORM_MESSAGE_H_
2020
21#include <sys/types.h>21#include <sys/types.h>
22#include <mir_toolkit/deprecations.h>
2223
23#ifdef __cplusplus24#ifdef __cplusplus
24/**25/**
@@ -51,7 +52,7 @@
51 * \param [in] opcode The platform message opcode52 * \param [in] opcode The platform message opcode
52 * \return The created MirPlatformMessage53 * \return The created MirPlatformMessage
53 */54 */
54__attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))55MIR_FOR_REMOVAL_IN_VERSION_1("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")
55MirPlatformMessage* mir_platform_message_create(unsigned int opcode);56MirPlatformMessage* mir_platform_message_create(unsigned int opcode);
5657
57/**58/**
@@ -59,7 +60,7 @@
59 *60 *
60 * \param [in] message The MirPlatformMessage61 * \param [in] message The MirPlatformMessage
61 */62 */
62__attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))63MIR_FOR_REMOVAL_IN_VERSION_1("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")
63void mir_platform_message_release(MirPlatformMessage const* message);64void mir_platform_message_release(MirPlatformMessage const* message);
6465
65/**66/**
@@ -71,7 +72,7 @@
71 * \param [in] data Pointer to the data72 * \param [in] data Pointer to the data
72 * \param [in] data_size The size of the data in bytes73 * \param [in] data_size The size of the data in bytes
73 */74 */
74__attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))75MIR_FOR_REMOVAL_IN_VERSION_1("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")
75void mir_platform_message_set_data(MirPlatformMessage* message, void const* data, size_t data_size);76void mir_platform_message_set_data(MirPlatformMessage* message, void const* data, size_t data_size);
7677
77/**78/**
@@ -89,7 +90,7 @@
89 * \param [in] fds Pointer to the array of fds90 * \param [in] fds Pointer to the array of fds
90 * \param [in] num_fds The number of fds91 * \param [in] num_fds The number of fds
91 */92 */
92__attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))93MIR_FOR_REMOVAL_IN_VERSION_1("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")
93void mir_platform_message_set_fds(MirPlatformMessage* message, int const* fds, size_t num_fds);94void mir_platform_message_set_fds(MirPlatformMessage* message, int const* fds, size_t num_fds);
9495
95/**96/**
@@ -98,7 +99,7 @@
98 * \param [in] message The MirPlatformMessage99 * \param [in] message The MirPlatformMessage
99 * \return The opcode100 * \return The opcode
100 */101 */
101__attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))102MIR_FOR_REMOVAL_IN_VERSION_1("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")
102unsigned int mir_platform_message_get_opcode(MirPlatformMessage const* message);103unsigned int mir_platform_message_get_opcode(MirPlatformMessage const* message);
103104
104/**105/**
@@ -111,7 +112,7 @@
111 * \param [in] message The MirPlatformMessage112 * \param [in] message The MirPlatformMessage
112 * \return The data113 * \return The data
113 */114 */
114__attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))115MIR_FOR_REMOVAL_IN_VERSION_1("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")
115MirPlatformMessageData mir_platform_message_get_data(MirPlatformMessage const* message);116MirPlatformMessageData mir_platform_message_get_data(MirPlatformMessage const* message);
116117
117/**118/**
@@ -128,7 +129,7 @@
128 * \param [in] message The MirPlatformMessage129 * \param [in] message The MirPlatformMessage
129 * \return The fds130 * \return The fds
130 */131 */
131__attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))132MIR_FOR_REMOVAL_IN_VERSION_1("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")
132MirPlatformMessageFds mir_platform_message_get_fds(MirPlatformMessage const* message);133MirPlatformMessageFds mir_platform_message_get_fds(MirPlatformMessage const* message);
133134
134#ifdef __cplusplus135#ifdef __cplusplus
135136
=== modified file 'include/client/mir_toolkit/mir_screencast.h'
--- include/client/mir_toolkit/mir_screencast.h 2017-01-19 05:30:03 +0000
+++ include/client/mir_toolkit/mir_screencast.h 2017-04-25 09:32:38 +0000
@@ -18,6 +18,7 @@
18#define MIR_TOOLKIT_MIR_SCREENCAST_H_18#define MIR_TOOLKIT_MIR_SCREENCAST_H_
1919
20#include <mir_toolkit/client_types.h>20#include <mir_toolkit/client_types.h>
21#include <mir_toolkit/deprecations.h>
2122
22#ifdef __cplusplus23#ifdef __cplusplus
23/**24/**
@@ -143,7 +144,7 @@
143MirScreencast* mir_connection_create_screencast_sync(144MirScreencast* mir_connection_create_screencast_sync(
144 MirConnection* connection,145 MirConnection* connection,
145 MirScreencastParameters* parameters)146 MirScreencastParameters* parameters)
146__attribute__ ((deprecated("use mir_screencast_create_sync instead")));147MIR_FOR_REMOVAL_IN_VERSION_1("use mir_screencast_create_sync instead");
147148
148/**149/**
149 * Release the specified screencast.150 * Release the specified screencast.
150151
=== modified file 'include/client/mir_toolkit/mir_surface.h'
--- include/client/mir_toolkit/mir_surface.h 2017-01-24 11:06:35 +0000
+++ include/client/mir_toolkit/mir_surface.h 2017-04-25 09:32:38 +0000
@@ -22,6 +22,7 @@
22#include <mir_toolkit/client_types.h>22#include <mir_toolkit/client_types.h>
23#include <mir_toolkit/common.h>23#include <mir_toolkit/common.h>
24#include <mir_toolkit/mir_cursor_configuration.h>24#include <mir_toolkit/mir_cursor_configuration.h>
25#include <mir_toolkit/deprecations.h>
2526
26#include <stdbool.h>27#include <stdbool.h>
2728
@@ -40,7 +41,7 @@
40MirSurfaceSpec* mir_connection_create_spec_for_normal_surface(MirConnection* connection,41MirSurfaceSpec* mir_connection_create_spec_for_normal_surface(MirConnection* connection,
41 int width, int height,42 int width, int height,
42 MirPixelFormat format)43 MirPixelFormat format)
43__attribute__((deprecated("Use mir_create_normal_window_spec() instead")));44MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_normal_window_spec() instead");
4445
45MirSurfaceSpec*46MirSurfaceSpec*
46mir_connection_create_spec_for_menu(MirConnection* connection,47mir_connection_create_spec_for_menu(MirConnection* connection,
@@ -50,7 +51,7 @@
50 MirSurface* parent,51 MirSurface* parent,
51 MirRectangle* rect,52 MirRectangle* rect,
52 MirEdgeAttachment edge)53 MirEdgeAttachment edge)
53__attribute__((deprecated("Use mir_specify_menu() instead")));54MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_specify_menu() instead");
5455
55MirSurfaceSpec*56MirSurfaceSpec*
56mir_connection_create_spec_for_tooltip(MirConnection* connection,57mir_connection_create_spec_for_tooltip(MirConnection* connection,
@@ -58,7 +59,7 @@
58 MirPixelFormat format,59 MirPixelFormat format,
59 MirSurface* parent,60 MirSurface* parent,
60 MirRectangle* zone)61 MirRectangle* zone)
61__attribute__((deprecated("Use mir_create_tip_window_spec() instead")));62MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_tip_window_spec() instead");
6263
63MirSurfaceSpec*64MirSurfaceSpec*
64mir_connection_create_spec_for_tip(MirConnection* connection,65mir_connection_create_spec_for_tip(MirConnection* connection,
@@ -67,30 +68,30 @@
67 MirSurface* parent,68 MirSurface* parent,
68 MirRectangle* rect,69 MirRectangle* rect,
69 MirEdgeAttachment edge)70 MirEdgeAttachment edge)
70__attribute__((deprecated("Use mir_create_tip_window_spec() instead")));71MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_tip_window_spec() instead");
7172
72MirSurfaceSpec*73MirSurfaceSpec*
73mir_connection_create_spec_for_modal_dialog(MirConnection* connection,74mir_connection_create_spec_for_modal_dialog(MirConnection* connection,
74 int width, int height,75 int width, int height,
75 MirPixelFormat format,76 MirPixelFormat format,
76 MirSurface* parent)77 MirSurface* parent)
77__attribute__((deprecated("Use mir_create_modal_dialog_window_spec() instead")));78MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_modal_dialog_window_spec() instead");
7879
79MirSurfaceSpec*80MirSurfaceSpec*
80mir_connection_create_spec_for_dialog(MirConnection* connection,81mir_connection_create_spec_for_dialog(MirConnection* connection,
81 int width, int height,82 int width, int height,
82 MirPixelFormat format)83 MirPixelFormat format)
83__attribute__((deprecated("Use mir_create_dialog_window_spec() instead")));84MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_dialog_window_spec() instead");
8485
85MirSurfaceSpec* mir_create_surface_spec(MirConnection* connection)86MirSurfaceSpec* mir_create_surface_spec(MirConnection* connection)
86__attribute__((deprecated("Use mir_create_window_spec() instead")));87MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() instead");
8788
88MirSurfaceSpec*89MirSurfaceSpec*
89mir_connection_create_spec_for_changes(MirConnection* connection)90mir_connection_create_spec_for_changes(MirConnection* connection)
90__attribute__((deprecated("Use mir_create_window_spec() instead")));91MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() instead");
9192
92void mir_surface_spec_set_parent(MirSurfaceSpec* spec, MirSurface* parent)93void mir_surface_spec_set_parent(MirSurfaceSpec* spec, MirSurface* parent)
93__attribute__((deprecated("Use mir_window_spec_set_parent() instead")));94MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_spec_set_parent() instead");
9495
95/**96/**
96 *\deprecated This will soon be a property of the backing content.97 *\deprecated This will soon be a property of the backing content.
@@ -103,77 +104,77 @@
103 * was removed by use of mir_window_spec_set_streams().104 * was removed by use of mir_window_spec_set_streams().
104 */105 */
105int mir_surface_get_swapinterval(MirSurface* surface)106int mir_surface_get_swapinterval(MirSurface* surface)
106__attribute__((deprecated("This will soon be a property of the backing content")));107MIR_FOR_REMOVAL_IN_VERSION_1("This will soon be a property of the backing content");
107108
108void mir_surface_spec_set_type(MirSurfaceSpec* spec, MirSurfaceType type)109void mir_surface_spec_set_type(MirSurfaceSpec* spec, MirSurfaceType type)
109__attribute__((deprecated("use mir_window_spec_set_type() instead")));110MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_type() instead");
110111
111void mir_surface_spec_set_name(MirSurfaceSpec* spec, char const* name)112void mir_surface_spec_set_name(MirSurfaceSpec* spec, char const* name)
112__attribute__((deprecated("use mir_window_spec_set_name() instead")));113MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_name() instead");
113114
114void mir_surface_spec_set_width(MirSurfaceSpec* spec, unsigned width)115void mir_surface_spec_set_width(MirSurfaceSpec* spec, unsigned width)
115__attribute__((deprecated("use mir_window_spec_set_width() instead")));116MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_width() instead");
116117
117void mir_surface_spec_set_height(MirSurfaceSpec* spec, unsigned height)118void mir_surface_spec_set_height(MirSurfaceSpec* spec, unsigned height)
118__attribute__((deprecated("use mir_window_spec_set_height() instead")));119MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_height() instead");
119120
120void mir_surface_spec_set_width_increment(MirSurfaceSpec* spec, unsigned width_inc)121void mir_surface_spec_set_width_increment(MirSurfaceSpec* spec, unsigned width_inc)
121__attribute__((deprecated("use mir_window_spec_set_width_increment() instead")));122MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_width_increment() instead");
122123
123void mir_surface_spec_set_height_increment(MirSurfaceSpec* spec, unsigned height_inc)124void mir_surface_spec_set_height_increment(MirSurfaceSpec* spec, unsigned height_inc)
124__attribute__((deprecated("use mir_window_spec_set_height_increment() instead")));125MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_height_increment() instead");
125126
126void mir_surface_spec_set_min_width(MirSurfaceSpec* spec, unsigned min_width)127void mir_surface_spec_set_min_width(MirSurfaceSpec* spec, unsigned min_width)
127__attribute__((deprecated("use mir_window_spec_set_min_width() instead")));128MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_width() instead");
128129
129void mir_surface_spec_set_min_height(MirSurfaceSpec* spec, unsigned min_height)130void mir_surface_spec_set_min_height(MirSurfaceSpec* spec, unsigned min_height)
130__attribute__((deprecated("use mir_window_spec_set_min_height() instead")));131MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_height() instead");
131132
132void mir_surface_spec_set_max_width(MirSurfaceSpec* spec, unsigned max_width)133void mir_surface_spec_set_max_width(MirSurfaceSpec* spec, unsigned max_width)
133__attribute__((deprecated("use mir_window_spec_set_max_width() instead")));134MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_width() instead");
134135
135void mir_surface_spec_set_max_height(MirSurfaceSpec* spec, unsigned max_height)136void mir_surface_spec_set_max_height(MirSurfaceSpec* spec, unsigned max_height)
136__attribute__((deprecated("use mir_window_spec_set_max_height() instead")));137MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_height() instead");
137138
138void mir_surface_spec_set_min_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)139void mir_surface_spec_set_min_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)
139__attribute__((deprecated("use mir_window_spec_set_min_aspect_ratio() instead")));140MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_aspect_ratio() instead");
140141
141void mir_surface_spec_set_max_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)142void mir_surface_spec_set_max_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)
142__attribute__((deprecated("use mir_window_spec_set_max_aspect_ratio() instead")));143MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_aspect_ratio() instead");
143144
144void mir_surface_spec_set_fullscreen_on_output(MirSurfaceSpec* spec, uint32_t output_id)145void mir_surface_spec_set_fullscreen_on_output(MirSurfaceSpec* spec, uint32_t output_id)
145__attribute__((deprecated("use mir_window_spec_set_fullscreen_on_output() instead")));146MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_fullscreen_on_output() instead");
146147
147void mir_surface_spec_set_preferred_orientation(MirSurfaceSpec* spec, MirOrientationMode mode)148void mir_surface_spec_set_preferred_orientation(MirSurfaceSpec* spec, MirOrientationMode mode)
148__attribute__((deprecated("use mir_window_spec_set_preferred_orientation() instead")));149MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_preferred_orientation() instead");
149150
150bool mir_surface_spec_attach_to_foreign_parent(MirSurfaceSpec* spec,151bool mir_surface_spec_attach_to_foreign_parent(MirSurfaceSpec* spec,
151 MirPersistentId* parent,152 MirPersistentId* parent,
152 MirRectangle* attachment_rect,153 MirRectangle* attachment_rect,
153 MirEdgeAttachment edge)154 MirEdgeAttachment edge)
154__attribute__((deprecated("use mir_window_spec_attach_to_foreign_parent() instead")));155MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_attach_to_foreign_parent() instead");
155156
156void mir_surface_spec_set_state(MirSurfaceSpec* spec, MirSurfaceState state)157void mir_surface_spec_set_state(MirSurfaceSpec* spec, MirSurfaceState state)
157__attribute__((deprecated("use mir_window_spec_set_state() instead")));158MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_state() instead");
158159
159void mir_surface_spec_release(MirSurfaceSpec* spec)160void mir_surface_spec_release(MirSurfaceSpec* spec)
160__attribute__((deprecated("use mir_window_spec_release() instead")));161MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_release() instead");
161162
162void mir_surface_spec_set_input_shape(MirSurfaceSpec* spec,163void mir_surface_spec_set_input_shape(MirSurfaceSpec* spec,
163 MirRectangle const *rectangles,164 MirRectangle const *rectangles,
164 size_t n_rects)165 size_t n_rects)
165__attribute__((deprecated("use mir_window_spec_set_input_shape() instead")));166MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_input_shape() instead");
166167
167void mir_surface_spec_set_event_handler(MirSurfaceSpec* spec,168void mir_surface_spec_set_event_handler(MirSurfaceSpec* spec,
168 mir_surface_event_callback callback,169 mir_surface_event_callback callback,
169 void* context)170 void* context)
170__attribute__((deprecated("use mir_window_spec_set_event_handler() instead")));171MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_event_handler() instead");
171172
172void mir_surface_spec_set_shell_chrome(MirSurfaceSpec* spec, MirShellChrome style)173void mir_surface_spec_set_shell_chrome(MirSurfaceSpec* spec, MirShellChrome style)
173__attribute__((deprecated("use mir_window_spec_set_shell_chrome() instead")));174MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_shell_chrome() instead");
174175
175void mir_surface_spec_set_pointer_confinement(MirSurfaceSpec* spec, MirPointerConfinementState state)176void mir_surface_spec_set_pointer_confinement(MirSurfaceSpec* spec, MirPointerConfinementState state)
176__attribute__((deprecated("use mir_window_spec_set_pointer_confinement() instead")));177MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_pointer_confinement() instead");
177178
178void mir_surface_spec_set_placement(MirSurfaceSpec* spec,179void mir_surface_spec_set_placement(MirSurfaceSpec* spec,
179 const MirRectangle* rect,180 const MirRectangle* rect,
@@ -182,69 +183,69 @@
182 MirPlacementHints placement_hints,183 MirPlacementHints placement_hints,
183 int offset_dx,184 int offset_dx,
184 int offset_dy)185 int offset_dy)
185__attribute__((deprecated("use mir_window_spec_set_placement() instead")));186MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_placement() instead");
186187
187MirSurfaceSpec* mir_connection_create_spec_for_input_method(MirConnection* connection,188MirSurfaceSpec* mir_connection_create_spec_for_input_method(MirConnection* connection,
188 int width, int height,189 int width, int height,
189 MirPixelFormat format)190 MirPixelFormat format)
190__attribute__((deprecated("use mir_create_input_method_window_spec() instead")));191MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_input_method_window_spec() instead");
191192
192void mir_surface_spec_set_pixel_format(MirSurfaceSpec* spec, MirPixelFormat format)193void mir_surface_spec_set_pixel_format(MirSurfaceSpec* spec, MirPixelFormat format)
193__attribute__((deprecated("use mir_window_spec_set_pixel_format() instead")));194MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_pixel_format() instead");
194195
195void mir_surface_spec_set_buffer_usage(MirSurfaceSpec* spec, MirBufferUsage usage)196void mir_surface_spec_set_buffer_usage(MirSurfaceSpec* spec, MirBufferUsage usage)
196__attribute__((deprecated("use mir_window_spec_set_buffer_usage() instead")));197MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_buffer_usage() instead");
197198
198void mir_surface_spec_set_streams(MirSurfaceSpec* spec,199void mir_surface_spec_set_streams(MirSurfaceSpec* spec,
199 MirBufferStreamInfo* streams,200 MirBufferStreamInfo* streams,
200 unsigned int num_streams)201 unsigned int num_streams)
201__attribute__((deprecated("use mir_window_spec_set_streams() instead")));202MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_streams() instead");
202203
203void mir_surface_apply_spec(MirSurface* surface, MirSurfaceSpec* spec)204void mir_surface_apply_spec(MirSurface* surface, MirSurfaceSpec* spec)
204__attribute__((deprecated("use mir_window_apply_spec() instead")));205MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_apply_spec() instead");
205206
206bool mir_surface_is_valid(MirSurface *surface)207bool mir_surface_is_valid(MirSurface *surface)
207__attribute__((deprecated("use mir_window_is_valid() instead")));208MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_is_valid() instead");
208209
209MirWaitHandle* mir_surface_create(MirSurfaceSpec* requested_specification,210MirWaitHandle* mir_surface_create(MirSurfaceSpec* requested_specification,
210 mir_surface_callback callback, void* context)211 mir_surface_callback callback, void* context)
211__attribute__((deprecated("use mir_create_window() instead")));212MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_window() instead");
212213
213MirSurface* mir_surface_create_sync(MirSurfaceSpec* requested_specification)214MirSurface* mir_surface_create_sync(MirSurfaceSpec* requested_specification)
214__attribute__((deprecated("use mir_create_window_sync() instead")));215MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_window_sync() instead");
215216
216MirWaitHandle *mir_surface_release(217MirWaitHandle *mir_surface_release(
217 MirSurface *surface,218 MirSurface *surface,
218 mir_surface_callback callback,219 mir_surface_callback callback,
219 void *context)220 void *context)
220__attribute__((deprecated("use mir_window_release() instead")));221MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_release() instead");
221222
222void mir_surface_release_sync(MirSurface *surface)223void mir_surface_release_sync(MirSurface *surface)
223__attribute__((deprecated("use mir_window_release_sync() instead")));224MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_release_sync() instead");
224225
225void mir_surface_set_event_handler(MirSurface *surface,226void mir_surface_set_event_handler(MirSurface *surface,
226 mir_surface_event_callback callback,227 mir_surface_event_callback callback,
227 void* context)228 void* context)
228__attribute__((deprecated("use mir_window_set_event_handler() instead")));229MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_event_handler() instead");
229230
230MirBufferStream* mir_surface_get_buffer_stream(MirSurface *surface)231MirBufferStream* mir_surface_get_buffer_stream(MirSurface *surface)
231__attribute__((deprecated("use mir_window_get_buffer_stream() instead")));232MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_buffer_stream() instead");
232233
233char const* mir_surface_get_error_message(MirSurface *surface)234char const* mir_surface_get_error_message(MirSurface *surface)
234__attribute__((deprecated("use mir_window_get_error_message() instead")));235MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_error_message() instead");
235236
236void mir_surface_get_parameters(MirSurface *surface, MirSurfaceParameters *parameters)237void mir_surface_get_parameters(MirSurface *surface, MirSurfaceParameters *parameters)
237__attribute__((deprecated("use mir_window_get_parameters() instead")));238MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_parameters() instead");
238239
239MirSurfaceType mir_surface_get_type(MirSurface* surface)240MirSurfaceType mir_surface_get_type(MirSurface* surface)
240__attribute__((deprecated("use mir_window_get_type() instead")));241MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_type() instead");
241242
242MirWaitHandle* mir_surface_set_state(MirSurface *surface,243MirWaitHandle* mir_surface_set_state(MirSurface *surface,
243 MirSurfaceState state)244 MirSurfaceState state)
244__attribute__((deprecated("use mir_window_set_state() instead")));245MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_state() instead");
245246
246MirSurfaceState mir_surface_get_state(MirSurface *surface)247MirSurfaceState mir_surface_get_state(MirSurface *surface)
247__attribute__((deprecated("use mir_window_get_state() instead")));248MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_state() instead");
248249
249/**250/**
250 * Set the swapinterval for the default stream.251 * Set the swapinterval for the default stream.
@@ -260,37 +261,37 @@
260 * or NULL if the interval could not be supported261 * or NULL if the interval could not be supported
261 */262 */
262MirWaitHandle* mir_surface_set_swapinterval(MirSurface* surface, int interval)263MirWaitHandle* mir_surface_set_swapinterval(MirSurface* surface, int interval)
263__attribute__((deprecated("Swap interval should be set on the backing content")));264MIR_FOR_REMOVAL_IN_VERSION_1("Swap interval should be set on the backing content");
264265
265int mir_surface_get_dpi(MirSurface* surface)266int mir_surface_get_dpi(MirSurface* surface)
266__attribute__((deprecated("use mir_window_get_dpi() instead")));267MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_dpi() instead");
267268
268MirSurfaceFocusState mir_surface_get_focus(MirSurface *surface)269MirSurfaceFocusState mir_surface_get_focus(MirSurface *surface)
269__attribute__((deprecated("use mir_window_get_focus_state() instead")));270MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_focus_state() instead");
270271
271MirSurfaceVisibility mir_surface_get_visibility(MirSurface *surface)272MirSurfaceVisibility mir_surface_get_visibility(MirSurface *surface)
272__attribute__((deprecated("use mir_window_get_visibility() instead")));273MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_visibility() instead");
273274
274MirWaitHandle* mir_surface_configure_cursor(MirSurface *surface, MirCursorConfiguration const* parameters)275MirWaitHandle* mir_surface_configure_cursor(MirSurface *surface, MirCursorConfiguration const* parameters)
275__attribute__((deprecated("use mir_window_configure_cursor() instead")));276MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_configure_cursor() instead");
276277
277MirOrientation mir_surface_get_orientation(MirSurface *surface)278MirOrientation mir_surface_get_orientation(MirSurface *surface)
278__attribute__((deprecated("use mir_window_get_orientation() instead")));279MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_orientation() instead");
279280
280MirWaitHandle* mir_surface_set_preferred_orientation(MirSurface *surface, MirOrientationMode orientation)281MirWaitHandle* mir_surface_set_preferred_orientation(MirSurface *surface, MirOrientationMode orientation)
281__attribute__((deprecated("use mir_window_set_preferred_orientation() instead")));282MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_preferred_orientation() instead");
282283
283MirOrientationMode mir_surface_get_preferred_orientation(MirSurface *surface)284MirOrientationMode mir_surface_get_preferred_orientation(MirSurface *surface)
284__attribute__((deprecated("use mir_window_get_preferred_orientation() instead")));285MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_preferred_orientation() instead");
285286
286MirWaitHandle* mir_surface_request_persistent_id(MirSurface* surface, mir_surface_id_callback callback, void* context)287MirWaitHandle* mir_surface_request_persistent_id(MirSurface* surface, mir_surface_id_callback callback, void* context)
287__attribute__((deprecated("use mir_window_request_persistent_id() instead")));288MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_request_persistent_id() instead");
288289
289MirPersistentId* mir_surface_request_persistent_id_sync(MirSurface *surface)290MirPersistentId* mir_surface_request_persistent_id_sync(MirSurface *surface)
290__attribute__((deprecated("use mir_window_request_persistent_id_sync() instead")));291MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_request_persistent_id_sync() instead");
291292
292void mir_surface_raise(MirSurface* surface, MirCookie const* cookie)293void mir_surface_raise(MirSurface* surface, MirCookie const* cookie)
293__attribute__((deprecated("use mir_window_raise() instead")));294MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_raise() instead");
294295
295#pragma GCC diagnostic pop296#pragma GCC diagnostic pop
296297
297298
=== modified file 'include/client/mir_toolkit/mir_wait.h'
--- include/client/mir_toolkit/mir_wait.h 2017-01-19 23:17:56 +0000
+++ include/client/mir_toolkit/mir_wait.h 2017-04-25 09:32:38 +0000
@@ -19,6 +19,7 @@
19#define MIR_TOOLKIT_MIR_WAIT_H_19#define MIR_TOOLKIT_MIR_WAIT_H_
2020
21#include <mir_toolkit/client_types.h>21#include <mir_toolkit/client_types.h>
22#include <mir_toolkit/deprecations.h>
2223
23#ifdef __cplusplus24#ifdef __cplusplus
24/**25/**
@@ -36,7 +37,7 @@
36 * \param [in] wait_handle Handle returned by an asynchronous request37 * \param [in] wait_handle Handle returned by an asynchronous request
37 */38 */
38void mir_wait_for(MirWaitHandle *wait_handle)39void mir_wait_for(MirWaitHandle *wait_handle)
39__attribute__ ((deprecated("No longer supported - use callbacks or wait for state changes")));40MIR_FOR_REMOVAL_IN_VERSION_1("No longer supported - use callbacks or wait for state changes");
4041
41/**42/**
42 * Wait on the supplied handle until one instance of the associated request43 * Wait on the supplied handle until one instance of the associated request
@@ -47,7 +48,7 @@
47 * \param [in] wait_handle Handle returned by an asynchronous request48 * \param [in] wait_handle Handle returned by an asynchronous request
48 */49 */
49void mir_wait_for_one(MirWaitHandle *wait_handle)50void mir_wait_for_one(MirWaitHandle *wait_handle)
50__attribute__ ((deprecated("No longer supported - use callbacks or wait for state changes")));51MIR_FOR_REMOVAL_IN_VERSION_1("No longer supported - use callbacks or wait for state changes");
5152
5253
53#ifdef __cplusplus54#ifdef __cplusplus
5455
=== modified file 'include/client/mir_toolkit/mir_window.h'
--- include/client/mir_toolkit/mir_window.h 2017-02-03 20:39:06 +0000
+++ include/client/mir_toolkit/mir_window.h 2017-04-25 09:32:38 +0000
@@ -22,6 +22,7 @@
22#include <mir_toolkit/client_types.h>22#include <mir_toolkit/client_types.h>
23#include <mir_toolkit/common.h>23#include <mir_toolkit/common.h>
24#include <mir_toolkit/mir_cursor_configuration.h>24#include <mir_toolkit/mir_cursor_configuration.h>
25#include <mir_toolkit/deprecations.h>
2526
26#include <stdbool.h>27#include <stdbool.h>
2728
@@ -555,7 +556,7 @@
555 MirRenderSurface* render_surface,556 MirRenderSurface* render_surface,
556 int logical_width, int logical_height,557 int logical_width, int logical_height,
557 int displacement_x, int displacement_y)558 int displacement_x, int displacement_y)
558__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));559MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
559#pragma GCC diagnostic pop560#pragma GCC diagnostic pop
560561
561/**562/**
@@ -774,7 +775,7 @@
774 * \param [in,out] context User data passed to completion callback.775 * \param [in,out] context User data passed to completion callback.
775 */776 */
776void mir_window_request_persistent_id(MirWindow* window, MirWindowIdCallback callback, void* context)777void mir_window_request_persistent_id(MirWindow* window, MirWindowIdCallback callback, void* context)
777__attribute__((deprecated("Use mir_window_request_window_id() instead")));778MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_request_window_id() instead");
778void mir_window_request_window_id(MirWindow* window, MirWindowIdCallback callback, void* context);779void mir_window_request_window_id(MirWindow* window, MirWindowIdCallback callback, void* context);
779780
780/**781/**
@@ -784,7 +785,7 @@
784 * be freed with a call to mir_persistent_id_release()785 * be freed with a call to mir_persistent_id_release()
785 */786 */
786MirPersistentId* mir_window_request_persistent_id_sync(MirWindow* window)787MirPersistentId* mir_window_request_persistent_id_sync(MirWindow* window)
787__attribute__((deprecated("Use mir_window_request_window_id_sync")));788MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_request_window_id_sync");
788MirWindowId* mir_window_request_window_id_sync(MirWindow* window);789MirWindowId* mir_window_request_window_id_sync(MirWindow* window);
789#ifdef __cplusplus790#ifdef __cplusplus
790}791}
791792
=== modified file 'include/client/mir_toolkit/rs/mir_render_surface.h'
--- include/client/mir_toolkit/rs/mir_render_surface.h 2017-03-16 16:47:21 +0000
+++ include/client/mir_toolkit/rs/mir_render_surface.h 2017-04-25 09:32:38 +0000
@@ -21,6 +21,7 @@
21#define MIR_TOOLKIT_MIR_RENDER_SURFACE_H_21#define MIR_TOOLKIT_MIR_RENDER_SURFACE_H_
2222
23#include <mir_toolkit/client_types.h>23#include <mir_toolkit/client_types.h>
24#include <mir_toolkit/deprecations.h>
2425
25#ifdef __cplusplus26#ifdef __cplusplus
26/**27/**
@@ -49,7 +50,7 @@
49 int width, int height,50 int width, int height,
50 MirRenderSurfaceCallback callback,51 MirRenderSurfaceCallback callback,
51 void* context)52 void* context)
52__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));53MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
5354
54/**55/**
55 * Create a render surface and wait for the result56 * Create a render surface and wait for the result
@@ -64,7 +65,7 @@
64MirRenderSurface* mir_connection_create_render_surface_sync(65MirRenderSurface* mir_connection_create_render_surface_sync(
65 MirConnection* connection,66 MirConnection* connection,
66 int width, int height)67 int width, int height)
67__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));68MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
6869
69/**70/**
70 * Get the size of the MirRenderSurface71 * Get the size of the MirRenderSurface
@@ -76,7 +77,7 @@
76void mir_render_surface_get_size(77void mir_render_surface_get_size(
77 MirRenderSurface* render_surface,78 MirRenderSurface* render_surface,
78 int* width, int* height)79 int* width, int* height)
79__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));80MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
8081
81/**82/**
82 * Set the size of the MirRenderSurface83 * Set the size of the MirRenderSurface
@@ -88,7 +89,7 @@
88void mir_render_surface_set_size(89void mir_render_surface_set_size(
89 MirRenderSurface* render_surface,90 MirRenderSurface* render_surface,
90 int width, int height)91 int width, int height)
91__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));92MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
9293
93/**94/**
94 * Test for a valid render surface95 * Test for a valid render surface
@@ -100,7 +101,7 @@
100 */101 */
101bool mir_render_surface_is_valid(102bool mir_render_surface_is_valid(
102 MirRenderSurface* render_surface)103 MirRenderSurface* render_surface)
103__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));104MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
104105
105/**106/**
106 * Retrieve a text description of the error. The returned string is owned by107 * Retrieve a text description of the error. The returned string is owned by
@@ -113,7 +114,7 @@
113 */114 */
114char const *mir_render_surface_get_error_message(115char const *mir_render_surface_get_error_message(
115 MirRenderSurface* render_surface)116 MirRenderSurface* render_surface)
116__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));117MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
117118
118/**119/**
119 * Release the specified render surface120 * Release the specified render surface
@@ -122,7 +123,7 @@
122 */123 */
123void mir_render_surface_release(124void mir_render_surface_release(
124 MirRenderSurface* render_surface)125 MirRenderSurface* render_surface)
125__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));126MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
126127
127/**128/**
128 * Obtain the buffer stream backing a given render surface.129 * Obtain the buffer stream backing a given render surface.
@@ -142,7 +143,7 @@
142 MirRenderSurface* render_surface,143 MirRenderSurface* render_surface,
143 int width, int height,144 int width, int height,
144 MirPixelFormat format)145 MirPixelFormat format)
145__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));146MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
146147
147/**148/**
148 * Obtain the presentation chain backing a given render surface.149 * Obtain the presentation chain backing a given render surface.
@@ -155,7 +156,7 @@
155 */156 */
156MirPresentationChain* mir_render_surface_get_presentation_chain(157MirPresentationChain* mir_render_surface_get_presentation_chain(
157 MirRenderSurface* render_surface)158 MirRenderSurface* render_surface)
158__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));159MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
159160
160/** Query whether the server supports a given presentation mode.161/** Query whether the server supports a given presentation mode.
161 *162 *
@@ -189,7 +190,7 @@
189 MirWindowSpec* spec,190 MirWindowSpec* spec,
190 MirRenderSurface* render_surface,191 MirRenderSurface* render_surface,
191 int hotspot_x, int hotspot_y)192 int hotspot_x, int hotspot_y)
192__attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));193MIR_FOR_REMOVAL_IN_VERSION_1("This function is slated for rename due to MirRenderSurface-->MirSurface transition");
193194
194#pragma GCC diagnostic pop195#pragma GCC diagnostic pop
195196
196197
=== modified file 'include/core/mir_toolkit/common.h'
--- include/core/mir_toolkit/common.h 2017-01-23 22:29:00 +0000
+++ include/core/mir_toolkit/common.h 2017-04-25 09:32:38 +0000
@@ -21,6 +21,8 @@
21#ifndef MIR_COMMON_H_21#ifndef MIR_COMMON_H_
22#define MIR_COMMON_H_22#define MIR_COMMON_H_
2323
24#include <mir_toolkit/deprecations.h>
25
24//for clang26//for clang
25#ifndef __has_feature27#ifndef __has_feature
26 #define __has_feature(x) 0 // Compatibility with non-clang28 #define __has_feature(x) 0 // Compatibility with non-clang
@@ -35,7 +37,7 @@
35 (__has_extension(attribute_deprecated_with_message) && \37 (__has_extension(attribute_deprecated_with_message) && \
36 __has_extension(enumerator_attributes))38 __has_extension(enumerator_attributes))
37 #define MIR_DEPRECATED_ENUM(ENUM, INSTEAD) \39 #define MIR_DEPRECATED_ENUM(ENUM, INSTEAD) \
38 ENUM __attribute__ ((deprecated("Use " #INSTEAD " instead")))40 ENUM MIR_FOR_REMOVAL_IN_VERSION_1("Use " #INSTEAD " instead")
39#else41#else
40 #define MIR_DEPRECATED_ENUM(ENUM, INSTEAD) \42 #define MIR_DEPRECATED_ENUM(ENUM, INSTEAD) \
41 ENUM43 ENUM
@@ -65,7 +67,7 @@
65 mir_surface_attrib_preferred_orientation,67 mir_surface_attrib_preferred_orientation,
66 /* Must be last */68 /* Must be last */
67 mir_surface_attribs69 mir_surface_attribs
68} MirSurfaceAttrib __attribute__ ((deprecated("use MirWindowAttrib")));70} MirSurfaceAttrib MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowAttrib");
6971
70/**72/**
71 * Attributes of a window that the client and server/shell may wish to73 * Attributes of a window that the client and server/shell may wish to
@@ -102,7 +104,7 @@
102 mir_surface_type_satellite, /**< AKA "toolbox"/"toolbar" */104 mir_surface_type_satellite, /**< AKA "toolbox"/"toolbar" */
103 mir_surface_type_tip, /**< AKA "tooltip" */105 mir_surface_type_tip, /**< AKA "tooltip" */
104 mir_surface_types106 mir_surface_types
105} MirSurfaceType __attribute__ ((deprecated("use MirWindowType")));107} MirSurfaceType MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowType");
106108
107typedef enum MirWindowType109typedef enum MirWindowType
108{110{
@@ -132,7 +134,7 @@
132 mir_surface_state_horizmaximized,134 mir_surface_state_horizmaximized,
133 mir_surface_state_hidden,135 mir_surface_state_hidden,
134 mir_surface_states136 mir_surface_states
135} MirSurfaceState __attribute__ ((deprecated("use MirWindowState")));137} MirSurfaceState MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowState");
136138
137typedef enum MirWindowState139typedef enum MirWindowState
138{140{
@@ -154,7 +156,7 @@
154{156{
155 mir_surface_unfocused = 0,157 mir_surface_unfocused = 0,
156 mir_surface_focused158 mir_surface_focused
157} MirSurfaceFocusState __attribute__ ((deprecated("use MirWindowFocusState")));159} MirSurfaceFocusState MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowFocusState");
158160
159typedef enum MirWindowFocusState161typedef enum MirWindowFocusState
160{162{
@@ -166,7 +168,7 @@
166{168{
167 mir_surface_visibility_occluded = 0,169 mir_surface_visibility_occluded = 0,
168 mir_surface_visibility_exposed170 mir_surface_visibility_exposed
169} MirSurfaceVisibility __attribute__ ((deprecated("use MirWindowFocusState")));171} MirSurfaceVisibility MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowFocusState");
170172
171typedef enum MirWindowVisibility173typedef enum MirWindowVisibility
172{174{
173175
=== added file 'include/core/mir_toolkit/deprecations.h'
--- include/core/mir_toolkit/deprecations.h 1970-01-01 00:00:00 +0000
+++ include/core/mir_toolkit/deprecations.h 2017-04-25 09:32:38 +0000
@@ -0,0 +1,36 @@
1/*
2 * Copyright © 2017 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser 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 Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef MIR_DEPRECATIONS_H_
18#define MIR_DEPRECATIONS_H_
19
20#ifndef MIR_ENABLE_DEPRECATIONS
21 // use __GNUC__ < 6 as a proxy for building on Ubunutu 16.04LTS ("Xenial")
22 #if defined(__clang__) || !defined(__GNUC__) || (__GNUC__ >= 6)
23 #define MIR_ENABLE_DEPRECATIONS 1
24 #else
25 #define MIR_ENABLE_DEPRECATIONS 0
26 #endif
27#endif
28
29#if MIR_ENABLE_DEPRECATIONS > 0
30 #define MIR_FOR_REMOVAL_IN_VERSION_1(message)\
31 __attribute__((deprecated(message)))
32#else
33 #define MIR_FOR_REMOVAL_IN_VERSION_1(message)
34#endif
35
36#endif //MIR_DEPRECATIONS_H_

Subscribers

People subscribed via source and target branches