summaryrefslogtreecommitdiff
path: root/backend/utils.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/utils.h
parent5875f6ac9ad2191eb761157fb94cb73bc671a9f0 (diff)
downloadkatja-2c65a2c6b02924df720f55c6e96e2e201d404c0c.tar.gz
Rename Glib primitive types to standard C types
Diffstat (limited to 'backend/utils.h')
-rw-r--r--backend/utils.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/backend/utils.h b/backend/utils.h
index b982429..88e9073 100644
--- a/backend/utils.h
+++ b/backend/utils.h
@@ -1,5 +1,9 @@
-#ifndef __SLACK_UTILS_H
-#define __SLACK_UTILS_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 <curl/curl.h>
#include <pk-backend.h>
@@ -9,24 +13,20 @@ namespace slack {
struct JobData
{
- GObjectClass parent_class;
-
sqlite3 *db;
CURL *curl;
};
-CURLcode get_file (CURL **curl, gchar *source_url, gchar *dest);
+CURLcode get_file (CURL **curl, char *source_url, char *dest);
-gchar **split_package_name (const gchar *pkg_filename);
+char **split_package_name (const char *pkg_filename);
-PkInfoEnum is_installed (const gchar *pkg_fullname);
+PkInfoEnum is_installed (const char *pkg_fullname);
extern "C" {
-gint cmp_repo (gconstpointer a, gconstpointer b);
+int cmp_repo (const void *a, const void *b);
}
}
-
-#endif /* __SLACK_UTILS_H */