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 2 or 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 
23 
24 #include <stdbool.h>
25 
26 #ifdef __cplusplus
27 
31 extern "C" {
32 #endif
33 #pragma GCC diagnostic push
34 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35 
42 bool mir_persistent_id_is_valid(MirPersistentId* id)
43 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_is_valid() instead");
44 
51 void mir_persistent_id_release(MirPersistentId* id)
52 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_release() instead");
53 
62 char const* mir_persistent_id_as_string(MirPersistentId* id)
63 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_as_string() instead");
64 
70 MirPersistentId* mir_persistent_id_from_string(char const* string_representation)
71 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_from_string() instead");
72 
73 #pragma GCC diagnostic pop
74 
75 #ifdef __cplusplus
76 }
78 #endif
79 
80 #endif /* MIR_TOOLKIT_MIR_PERSISTENT_ID_H_ */
bool mir_persistent_id_is_valid(MirPersistentId *id) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_is_valid() instead")
Check the validity of a MirPersistentId.
void mir_persistent_id_release(MirPersistentId *id) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_release() instead")
Free a MirPersistentId.
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
char const * mir_persistent_id_as_string(MirPersistentId *id) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_as_string() instead")
Get a string representation of a MirSurfaceId.
MirPersistentId * mir_persistent_id_from_string(char const *string_representation) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_from_string() instead")
Deserialise a string representation of a MirSurfaceId.

Copyright © 2012-2018 Canonical Ltd.
Generated on Sat Sep 1 14:12:02 UTC 2018