Mir
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
include
server
mir
frontend
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
{
27
class
SessionCredentials
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
mir
Definition:
as_render_target.h:27
mir::frontend::SessionCredentials::pid
pid_t pid() const
mir::frontend::SessionCredentials::uid
uid_t uid() const
mir::frontend::SessionCredentials
Definition:
session_credentials.h:27
mir::frontend::SessionCredentials::gid
gid_t gid() const
Copyright © 2012-2016 Canonical Ltd.
Generated on Tue Oct 31 05:57:28 UTC 2017