Mir
mir_persistent_id.h
Go to the documentation of this file.
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 
18 #ifndef MIR_TOOLKIT_MIR_PERSISTENT_ID_H_
19 #define MIR_TOOLKIT_MIR_PERSISTENT_ID_H_
20 
22 
23 #include <stdbool.h>
24 
25 #ifdef __cplusplus
26 
30 extern "C" {
31 #endif
32 #pragma GCC diagnostic push
33 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34 
41 bool mir_persistent_id_is_valid(MirPersistentId* id)
42 __attribute__((deprecated("Use mir_window_id_is_valid() instead")));
43 
50 void mir_persistent_id_release(MirPersistentId* id)
51 __attribute__((deprecated("Use mir_window_id_release() instead")));
52 
61 char const* mir_persistent_id_as_string(MirPersistentId* id)
62 __attribute__((deprecated("Use mir_window_id_as_string() instead")));
63 
69 MirPersistentId* mir_persistent_id_from_string(char const* string_representation)
70 __attribute__((deprecated("Use mir_window_id_from_string() instead")));
71 
72 #pragma GCC diagnostic pop
73 
74 #ifdef __cplusplus
75 }
77 #endif
78 
79 #endif /* MIR_TOOLKIT_MIR_PERSISTENT_ID_H_ */
bool mir_persistent_id_is_valid(MirPersistentId *id) __attribute__((deprecated("Use mir_window_id_is_valid() instead")))
Check the validity of a MirPersistentId.
void mir_persistent_id_release(MirPersistentId *id) __attribute__((deprecated("Use mir_window_id_release() instead")))
Free a MirPersistentId.
MirConnectedCallback mir_connected_callback __attribute__((deprecated("Use MirConnectedCallback instead")))
Release a platform message.
Definition: client_types.h:85
char const * mir_persistent_id_as_string(MirPersistentId *id) __attribute__((deprecated("Use mir_window_id_as_string() instead")))
Get a string representation of a MirSurfaceId.
MirPersistentId * mir_persistent_id_from_string(char const *string_representation) __attribute__((deprecated("Use mir_window_id_from_string() instead")))
Deserialise a string representation of a MirSurfaceId.

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Mar 27 12:06:55 UTC 2017