summaryrefslogtreecommitdiff
path: root/backend/dl.h
diff options
context:
space:
mode:
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 */