From 2c65a2c6b02924df720f55c6e96e2e201d404c0c Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 27 Feb 2026 09:51:29 +0100 Subject: Rename Glib primitive types to standard C types --- backend/dl.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'backend/dl.h') diff --git a/backend/dl.h b/backend/dl.h index 600088d..47b4d2a 100644 --- a/backend/dl.h +++ b/backend/dl.h @@ -1,24 +1,28 @@ -#ifndef __SLACK_DL_H -#define __SLACK_DL_H +/* + * 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 #include "pkgtools.h" +#include "utils.h" namespace slack { class Dl final : public Pkgtools { public: - Dl (const gchar *name, const gchar *mirror, - guint8 order, const gchar *blacklist, gchar *index_file) noexcept; + Dl (const char *name, const char *mirror, + std::uint8_t order, const char *blacklist, char *index_file) noexcept; ~Dl () noexcept; - GSList *collect_cache_info (const gchar *tmpl) noexcept; - void generate_cache (PkBackendJob *job, const gchar *tmpl) noexcept; + GSList *collect_cache_info (const char *tmpl) noexcept; + void generate_cache (JobData *job_data, const char *tmpl) noexcept; private: - gchar *index_file; + char *index_file; }; } - -#endif /* __SLACK_DL_H */ -- cgit v1.2.3