Dobby
3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Loading...
Searching...
No Matches
AppInfrastructure
IpcService
include
IDbusUserIdSenderIdCache.h
1
/*
2
* If not stated otherwise in this file or this component's LICENSE file the
3
* following copyright and licenses apply:
4
*
5
* Copyright 2020 Sky UK
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
18
*/
19
/*
20
* IDbusUserIdSenderIdCache.h
21
*
22
* Created on: 21 Sep 2018
23
*/
24
25
#ifndef IPCSERVICE_LIB_INCLUDE_IDBUSUSERIDSENDERIDCACHE_H_
26
#define IPCSERVICE_LIB_INCLUDE_IDBUSUSERIDSENDERIDCACHE_H_
27
28
#include <sys/types.h>
29
#include <boost/optional.hpp>
30
#include <string>
31
32
namespace
AI_IPC
33
{
34
35
class
IDbusUserIdSenderIdCache
36
{
37
public
:
38
virtual
void
addSenderIUserId(
const
std::string& senderId, uid_t userId) = 0;
39
virtual
boost::optional<uid_t> getUserId(
const
std::string& senderId)
const
= 0;
40
virtual
void
removeUserId(
const
std::string& senderId) = 0;
41
42
virtual
~IDbusUserIdSenderIdCache
() =
default
;
43
};
44
45
}
//namespace AI_IPC
46
47
48
#endif
/* IPCSERVICE_LIB_INCLUDE_IDBUSUSERIDSENDERIDCACHE_H_ */
AI_IPC::IDbusUserIdSenderIdCache
Definition
IDbusUserIdSenderIdCache.h:36
Generated by
1.9.8