Mir
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_SHM_FILE_H_
21 #define MIR_CORE_SHM_FILE_H_
22 
23 #include <cstddef>
24 
25 namespace mir
26 {
27 
28 class ShmFile
29 {
30 public:
31  virtual ~ShmFile() = default;
32 
33  virtual void* base_ptr() const = 0;
34  virtual int fd() const = 0;
35 
36 protected:
37  ShmFile() = default;
38  ShmFile(ShmFile const&) = delete;
39  ShmFile& operator=(ShmFile const&) = delete;
40 };
41 
42 }
43 
44 #endif /* MIR_CORE_SHM_FILE_H_ */
mir::ShmFile::base_ptr
virtual void * base_ptr() const =0
mir::ShmFile::ShmFile
ShmFile(ShmFile const &)=delete
mir::ShmFile
Definition: shm_file.h:29
mir
Definition: splash_session.h:24
mir::ShmFile::fd
virtual int fd() const =0
mir::ShmFile::ShmFile
ShmFile()=default
mir::ShmFile::operator=
ShmFile & operator=(ShmFile const &)=delete
mir::ShmFile::~ShmFile
virtual ~ShmFile()=default

Copyright © 2012-2020 Canonical Ltd.
Generated on Sun Sep 27 19:03:53 UTC 2020
This documentation is licensed under the GPL version 2 or 3.