From 6f0f7d1b40a8fa8d46a2d6f4317600001cdbbb18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:57:27 +0200 Subject: Adding upstream version 43.5. Signed-off-by: Daniel Baumann --- lib/gs-remote-icon.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lib/gs-remote-icon.h (limited to 'lib/gs-remote-icon.h') diff --git a/lib/gs-remote-icon.h b/lib/gs-remote-icon.h new file mode 100644 index 0000000..82e246f --- /dev/null +++ b/lib/gs-remote-icon.h @@ -0,0 +1,37 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- + * vi:set noexpandtab tabstop=8 shiftwidth=8: + * + * Copyright (C) 2021 Endless OS Foundation, Inc + * + * Author: Philip Withnall + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#pragma once + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GS_TYPE_REMOTE_ICON (gs_remote_icon_get_type ()) + +/* FIXME: This is actually derived from GFileIcon, but the GFileIconClass isn’t + * public, so we use GObjectClass instead (which is what GFileIconClass is — it + * doesn’t define any vfuncs). See the note in gs-remote-icon.c. */ +G_DECLARE_FINAL_TYPE (GsRemoteIcon, gs_remote_icon, GS, REMOTE_ICON, GObject) + +GIcon *gs_remote_icon_new (const gchar *uri); + +const gchar *gs_remote_icon_get_uri (GsRemoteIcon *self); + +gboolean gs_remote_icon_ensure_cached (GsRemoteIcon *self, + SoupSession *soup_session, + guint maximum_icon_size, + GCancellable *cancellable, + GError **error); + +G_END_DECLS -- cgit v1.2.3