Mir
mir_platform_message.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 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_PLATFORM_MESSAGE_H_
19 #define MIR_TOOLKIT_MIR_PLATFORM_MESSAGE_H_
20 
21 #include <sys/types.h>
22 
23 #ifdef __cplusplus
24 
28 extern "C" {
29 #endif
30 
31 struct MirPlatformMessage;
32 
33 typedef struct
34 {
35  void const* const data;
36  size_t const size;
38 
39 typedef struct
40 {
41  int const* const fds;
42  size_t const num_fds;
44 
54 __attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))
55 MirPlatformMessage* mir_platform_message_create(unsigned int opcode);
56 
62 __attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))
63 void mir_platform_message_release(MirPlatformMessage const* message);
64 
74 __attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))
75 void mir_platform_message_set_data(MirPlatformMessage* message, void const* data, size_t data_size);
76 
92 __attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))
93 void mir_platform_message_set_fds(MirPlatformMessage* message, int const* fds, size_t num_fds);
94 
101 __attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))
102 unsigned int mir_platform_message_get_opcode(MirPlatformMessage const* message);
103 
114 __attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))
115 MirPlatformMessageData mir_platform_message_get_data(MirPlatformMessage const* message);
116 
131 __attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device")))
132 MirPlatformMessageFds mir_platform_message_get_fds(MirPlatformMessage const* message);
133 
134 #ifdef __cplusplus
135 }
137 #endif
138 
139 #endif
size_t const size
Definition: mir_platform_message.h:36
void const * data
Definition: mir_platform_message.h:75
int const *const fds
Definition: mir_platform_message.h:41
int const size_t num_fds
Definition: mir_platform_message.h:93
__attribute__((deprecated("use mir_extension_mesa_drm_auth or mir_extension_set_gbm_device"))) MirPlatformMessage *mir_platform_message_create(unsigned int opcode)
Create a platform message to use with mir_connection_platform_operation().
int const * fds
Definition: mir_platform_message.h:93
size_t const num_fds
Definition: mir_platform_message.h:42
void const *const data
Definition: mir_platform_message.h:35
void const size_t data_size
Definition: mir_platform_message.h:75
struct MirPlatformMessage MirPlatformMessage
Definition: client_types.h:74
Definition: mir_platform_message.h:39
Definition: mir_platform_message.h:33

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