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/utils.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'backend/utils.h') 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 #include @@ -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 */ -- cgit v1.2.3