My Project
Dbus.h
1 /*
2  * Copyright (C) 2020 UBports foundation
3  * Author(s): Marius Gripsgard <marius@ubports.com>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License version 3 as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  *
17  */
18 
19 #pragma once
20 
21 #include <lomiri/SymbolExport.h>
22 
23 #include <string>
24 
25 namespace lomiri
26 {
27 
28 namespace util
29 {
30  LOMIRI_API std::string dbus_sanitize_str(const std::string& str);
31  LOMIRI_API std::string dbus_sanitized_path(const std::string& base, const std::string& str);
32  LOMIRI_API inline std::string dbus_sanitized_path(const std::string& str)
33  {
34  return dbus_sanitized_path("/", str);
35  }
36 
37 } // namespace util
38 
39 } // namespace lomiri
Top-level namespace for all things Lomiri-related.
Definition: Version.h:38