aboutsummaryrefslogtreecommitdiff
path: root/include/katja/database.hpp
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-03-10 12:16:31 +0100
committerEugen Wissner <belka@caraus.de>2025-03-10 12:16:31 +0100
commitdfa5a732bab2bf4c50c6b193cb49cd3a67aef720 (patch)
tree54b15db6e2a686908bbcaa799534e3490bfa401d /include/katja/database.hpp
parent0fc4ddbd52cc243192830fe3b153334f83510947 (diff)
downloadkazbek-dfa5a732bab2bf4c50c6b193cb49cd3a67aef720.tar.gz
Display packages installed from a repository
Diffstat (limited to 'include/katja/database.hpp')
-rw-r--r--include/katja/database.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/katja/database.hpp b/include/katja/database.hpp
index d4d99e6..ee4816e 100644
--- a/include/katja/database.hpp
+++ b/include/katja/database.hpp
@@ -1,6 +1,12 @@
+/*
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
+ */
#pragma once
#include <string>
+#include <map>
namespace katja
{
@@ -21,8 +27,11 @@ namespace katja
database_package(const std::string& fullname);
+ bool operator<(const database_package& that) const;
+ bool operator>(const database_package& that) const;
+
std::string to_string() const;
};
-
+ std::multimap<std::string, database_package> read_installed_database();
}