Mir
anonymous_shm_file.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 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 * Authored by:
17 * Alexandros Frantzis <alexandros.frantzis@canonical.com>
18 */
19
20#ifndef MIR_CORE_ANONYMOUS_SHM_FILE_H_
21#define MIR_CORE_ANONYMOUS_SHM_FILE_H_
22
23#include "shm_file.h"
24#include "mir/fd.h"
25
26namespace mir
27{
28
29namespace detail
30{
31}
32
34{
35public:
36 AnonymousShmFile(size_t size);
38
39 void* base_ptr() const override;
40 int fd() const override;
41
42private:
43 Fd const fd_;
44 class MapHandle;
45 std::unique_ptr<MapHandle> const mapping;
46};
47
48}
49
50#endif /* MIR_CORE_ANONYMOUS_SHM_FILE_H_ */
Definition: anonymous_shm_file.h:34
void * base_ptr() const override
int fd() const override
~AnonymousShmFile() noexcept
AnonymousShmFile(size_t size)
Definition: fd.h:34
Definition: shm_file.h:29
Definition: splash_session.h:24
STL namespace.

Copyright © 2012-2022 Canonical Ltd.
Generated on Wed Dec 28 21:01:08 UTC 2022
This documentation is licensed under the GPL version 2 or 3.