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
31extern "C" {
32#endif
33#pragma GCC diagnostic push
34#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
42bool mir_persistent_id_is_valid(MirPersistentId* id)
43MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_is_valid() instead");
44
51void mir_persistent_id_release(MirPersistentId* id)
52MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_release() instead");
53
62char const* mir_persistent_id_as_string(MirPersistentId* id)
63MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_as_string() instead");
64
70MirPersistentId* mir_persistent_id_from_string(char const* string_representation)
71MIR_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_ */
#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.
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.
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.
void mir_persistent_id_release(MirPersistentId *id) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_id_release() instead")
Free a MirPersistentId.

Copyright © 2012-2022 Canonical Ltd.
Generated on Sun Oct 9 06:13:38 UTC 2022
This documentation is licensed under the GPL version 2 or 3.