Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ipc_operations.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 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  * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 
19 #ifndef MIR_GRAPHICS_MESA_IPC_OPERATIONS_H_
20 #define MIR_GRAPHICS_MESA_IPC_OPERATIONS_H_
21 
23 namespace mir
24 {
25 namespace graphics
26 {
27 namespace mesa
28 {
29 namespace helpers
30 {
31 class DRMHelper;
32 }
34 {
35 public:
36  IpcOperations(std::shared_ptr<helpers::DRMHelper> const&);
37  void pack_buffer(BufferIpcMessage& message, Buffer const& buffer, BufferIpcMsgType msg_type) const override;
38  void unpack_buffer(BufferIpcMessage& message, Buffer const& buffer) const override;
39  std::shared_ptr<PlatformIPCPackage> connection_ipc_package() override;
40 private:
41  std::shared_ptr<helpers::DRMHelper> const drm;
42 };
43 }
44 }
45 }
46 #endif /* MIR_GRAPHICS_MESA_IPC_OPERATIONS_H_ */
void unpack_buffer(BufferIpcMessage &message, Buffer const &buffer) const override
Arranges the IPC package for a buffer that was sent over IPC client to server.
Definition: ipc_operations.cpp:77
All things Mir.
Definition: aging_buffer.h:24
BufferIpcMsgType
Definition: platform_ipc_operations.h:28
Definition: buffer_ipc_message.h:32
IpcOperations(std::shared_ptr< helpers::DRMHelper > const &)
Definition: ipc_operations.cpp:46
Definition: platform_ipc_operations.h:37
std::shared_ptr< PlatformIPCPackage > connection_ipc_package() override
Gets the connection package for the platform.
Definition: ipc_operations.cpp:72
void pack_buffer(BufferIpcMessage &message, Buffer const &buffer, BufferIpcMsgType msg_type) const override
Arranges the IPC package for a buffer that is to be sent through the frontend from server to client...
Definition: ipc_operations.cpp:51
Definition: ipc_operations.h:33
Definition: buffer.h:34

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014