Mir
include
client
mir_toolkit
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 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
21
#include <
mir_toolkit/client_types.h
>
22
23
#ifdef __cplusplus
24
28
extern
"C"
{
29
#endif
30
37
MirBlob
*
mir_blob_from_display_configuration
(
MirDisplayConfiguration
* configuration);
38
48
MirBlob
*
mir_blob_onto_buffer
(
void
const
* buffer,
size_t
buffer_size);
49
58
MirDisplayConfiguration
*
mir_blob_to_display_configuration
(
MirBlob
* blob);
59
65
size_t
mir_blob_size
(
MirBlob
* blob);
66
72
void
const
*
mir_blob_data
(
MirBlob
* blob);
73
78
void
mir_blob_release
(
MirBlob
* blob);
79
80
#ifdef __cplusplus
81
}
83
#endif
84
85
#endif
/* MIR_TOOLKIT_MIR_BLOB_H_ */
MirDisplayConfiguration
Definition:
client_types.h:335
MirBlob
struct MirBlob MirBlob
Definition:
client_types.h:48
mir_blob_release
void mir_blob_release(MirBlob *blob)
Release a blob object.
mir_blob_to_display_configuration
MirDisplayConfiguration * mir_blob_to_display_configuration(MirBlob *blob)
Create a blob from a display configuration.
mir_blob_from_display_configuration
MirBlob * mir_blob_from_display_configuration(MirDisplayConfiguration *configuration)
Create a blob from a display configuration.
mir_blob_size
size_t mir_blob_size(MirBlob *blob)
Get the size of a blob.
mir_blob_onto_buffer
MirBlob * mir_blob_onto_buffer(void const *buffer, size_t buffer_size)
Create a blob from a buffer.
client_types.h
mir_blob_data
void const * mir_blob_data(MirBlob *blob)
Get the data of a blob.
Copyright © 2012-2016 Canonical Ltd.
Generated on Sat Dec 3 12:48:59 UTC 2016