summaryrefslogtreecommitdiff
path: root/backend/slackpkg.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/slackpkg.h
parent5875f6ac9ad2191eb761157fb94cb73bc671a9f0 (diff)
downloadkatja-2c65a2c6b02924df720f55c6e96e2e201d404c0c.tar.gz
Rename Glib primitive types to standard C types
Diffstat (limited to 'backend/slackpkg.h')
-rw-r--r--backend/slackpkg.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/backend/slackpkg.h b/backend/slackpkg.h
index 3ba60d6..bb45a46 100644
--- a/backend/slackpkg.h
+++ b/backend/slackpkg.h
@@ -1,30 +1,34 @@
-#ifndef __SLACK_SLACKPKG_H
-#define __SLACK_SLACKPKG_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 <cstddef>
#include "pkgtools.h"
+#include "utils.h"
namespace slack {
class Slackpkg final : public Pkgtools
{
public:
- Slackpkg (const gchar *name, const gchar *mirror,
- guint8 order, const gchar *blacklist, gchar **priority) noexcept;
+ Slackpkg (const char *name, const char *mirror,
+ std::uint8_t order, const char *blacklist, char **priority) noexcept;
~Slackpkg () 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:
static GHashTable *cat_map;
static const std::size_t max_buf_size = 8192;
- gchar **priority = NULL;
+ char **priority = nullptr;
void manifest (PkBackendJob *job,
- const gchar *tmpl, gchar *filename) noexcept;
+ const char *tmpl, char *filename) noexcept;
};
}
-
-#endif /* __SLACK_SLACKPKG_H */