Mir
session_credentials.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU 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 General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef MIR_FRONTEND_SESSION_CREDENTIALS_ID_H_
19 #define MIR_FRONTEND_SESSION_CREDENTIALS_ID_H_
20 
21 #include <sys/types.h>
22 
23 namespace mir
24 {
25 namespace frontend
26 {
28 {
29 public:
30  SessionCredentials(pid_t pid, uid_t uid, gid_t gid);
31 
32  pid_t pid() const;
33  uid_t uid() const;
34  gid_t gid() const;
35 
36 private:
37  SessionCredentials() = delete;
38 
39  pid_t the_pid;
40  uid_t the_uid;
41  gid_t the_gid;
42 };
43 }
44 }
45 
46 #endif
Definition: as_render_target.h:27
Definition: session_credentials.h:27

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:07:25 UTC 2017