summaryrefslogtreecommitdiff
path: root/backend/dl.h
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-02-27 09:51:29 +0100
committerEugen Wissner <belka@caraus.de>2026-02-27 09:51:29 +0100
commit2c65a2c6b02924df720f55c6e96e2e201d404c0c (patch)
treed5103d1d2fa92099a71553d4523138617c1e0bbd /backend/dl.h
parent5875f6ac9ad2191eb761157fb94cb73bc671a9f0 (diff)
downloadkatja-2c65a2c6b02924df720f55c6e96e2e201d404c0c.tar.gz
Rename Glib primitive types to standard C types
Diffstat (limited to 'backend/dl.h')
-rw-r--r--backend/dl.h22
1 files changed, 13 insertions, 9 deletions
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 <cstdint>
#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 */