diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-05-09 10:28:52 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-05-09 10:34:11 +0200 |
| commit | 8dd9efa88da99f602a6848731a115f10ec3a5b31 (patch) | |
| tree | c7d88ee8828fbbaa7571dd5fafba73d775d67e94 /backend/utils.h | |
| parent | dc3340473423ab92eae0962d9aaf239d218d16f2 (diff) | |
| download | katja-8dd9efa88da99f602a6848731a115f10ec3a5b31.tar.gz | |
Convert the backend to modules
Diffstat (limited to 'backend/utils.h')
| -rw-r--r-- | backend/utils.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/backend/utils.h b/backend/utils.h deleted file mode 100644 index b3976b8..0000000 --- a/backend/utils.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 <curl/curl.h> -#include <sqlite3.h> - -namespace katja -{ -enum class Info -{ - // Error. - unknown, - // Installed in the same version. - installed, - // A different version is installed. - updating, - // Available, but not installed. - installing, - // Available. - available -}; - -struct JobData -{ - sqlite3 *db; - CURL *curl; - - virtual void package(Info info, const char *package_id, const char *summary) = 0; - virtual void files(char **) = 0; - virtual void details(char *package_id, - const char *group, const char *description, const char *homepage, int uncompressed) = 0; - virtual void set_percentage(double) = 0; -}; - -CURLcode get_file(CURL **curl, char *source_url, char *dest); - -char **split_package_name(const char *pkg_filename); - -Info is_installed(const char *pkg_fullname); - -int cmp_repo(const void *a, const void *b); - -} |
