Mir
shm_file.h
Go to the documentation of this file.
1/*
2 * Copyright © 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#ifndef MIR_CORE_SHM_FILE_H_
18#define MIR_CORE_SHM_FILE_H_
19
20#include <cstddef>
21
22namespace mir
23{
24
26{
27public:
28 virtual ~ShmFile() = default;
29
30 virtual void* base_ptr() const = 0;
31 virtual int fd() const = 0;
32
33protected:
34 ShmFile() = default;
35 ShmFile(ShmFile const&) = delete;
36 ShmFile& operator=(ShmFile const&) = delete;
37};
38
39}
40
41#endif /* MIR_CORE_SHM_FILE_H_ */
Definition: shm_file.h:26
virtual int fd() const =0
virtual ~ShmFile()=default
virtual void * base_ptr() const =0
ShmFile(ShmFile const &)=delete
ShmFile()=default
ShmFile & operator=(ShmFile const &)=delete
Definition: runner.h:27

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.