Mir
mir_blob.h
Go to the documentation of this file.
1/*
2 * Copyright © 2015 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_BLOB_H_
19#define MIR_TOOLKIT_MIR_BLOB_H_
20
23
24#ifdef __cplusplus
29extern "C" {
30#endif
31
39MIR_FOR_REMOVAL_IN_VERSION_1("use mir_blob_from_display_config instead");
40
48
58MirBlob* mir_blob_onto_buffer(void const* buffer, size_t buffer_size);
59
69MIR_FOR_REMOVAL_IN_VERSION_1("use mir_blob_to_display_config instead");
70
80
86size_t mir_blob_size(MirBlob* blob);
87
93void const* mir_blob_data(MirBlob* blob);
94
100
101#ifdef __cplusplus
102}
104#endif
105
106#endif /* MIR_TOOLKIT_MIR_BLOB_H_ */
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
void const * mir_blob_data(MirBlob *blob)
Get the data of a blob.
MirDisplayConfig * mir_blob_to_display_config(MirBlob *blob)
Create a blob from a display config.
size_t mir_blob_size(MirBlob *blob)
Get the size of a blob.
MirBlob * mir_blob_onto_buffer(void const *buffer, size_t buffer_size)
Create a blob from a buffer.
struct MirDisplayConfig MirDisplayConfig
Definition: client_types.h:53
MirBlob * mir_blob_from_display_configuration(MirDisplayConfiguration *configuration) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_blob_from_display_config instead")
Create a blob from a display configuration.
struct MirBlob MirBlob
Definition: client_types.h:52
MirBlob * mir_blob_from_display_config(MirDisplayConfig *config)
Create a blob from a display config.
MirDisplayConfiguration * mir_blob_to_display_configuration(MirBlob *blob) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_blob_to_display_config instead")
Create a blob from a display configuration.
void mir_blob_release(MirBlob *blob)
Release a blob object.
Definition: client_types.h:381

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.