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
25namespace mir
26{
27
29{
30public:
31 virtual ~ShmFile() = default;
32
33 virtual void* base_ptr() const = 0;
34 virtual int fd() const = 0;
35
36protected:
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_ */
Definition: shm_file.h:29
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: splash_session.h:24

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.