Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gresource.h
Go to the documentation of this file.
1/* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright (C) 2006-2007 Red Hat, Inc.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 *
20 * Author: Alexander Larsson <alexl@redhat.com>
21 */
22
23#ifndef __G_RESOURCE_H__
24#define __G_RESOURCE_H__
25
26#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
27#error "Only <gio/gio.h> can be included directly."
28#endif
29
30#include <gio/giotypes.h>
31
33
34/**
35 * G_TYPE_RESOURCE:
36 *
37 * The #GType for #GResource.
38 */
39#define G_TYPE_RESOURCE (g_resource_get_type ())
40
41
42/**
43 * G_RESOURCE_ERROR:
44 *
45 * Error domain for #GResource. Errors in this domain will be from the
46 * #GResourceError enumeration. See #GError for more information on
47 * error domains.
48 */
49#define G_RESOURCE_ERROR (g_resource_error_quark ())
52
54
63
68 GError **error);
72void g_resource_unref (GResource *resource);
74GResource * g_resource_load (const gchar *filename,
75 GError **error);
78 const char *path,
79 GResourceLookupFlags lookup_flags,
80 GError **error);
83 const char *path,
84 GResourceLookupFlags lookup_flags,
85 GError **error);
88 const char *path,
89 GResourceLookupFlags lookup_flags,
90 GError **error);
93 const char *path,
94 GResourceLookupFlags lookup_flags,
95 gsize *size,
96 guint32 *flags,
97 GError **error);
98
105 GResourceLookupFlags lookup_flags,
106 GError **error);
108GBytes * g_resources_lookup_data (const char *path,
109 GResourceLookupFlags lookup_flags,
110 GError **error);
112char ** g_resources_enumerate_children (const char *path,
113 GResourceLookupFlags lookup_flags,
114 GError **error);
117 GResourceLookupFlags lookup_flags,
118 gsize *size,
119 guint32 *flags,
120 GError **error);
121
122
129
131
132#endif /* __G_RESOURCE_H__ */
typedefG_BEGIN_DECLS struct _GBytes GBytes
Definition garray.h:38
#define GIO_AVAILABLE_IN_2_32
GResourceLookupFlags
Definition gioenums.h:818
struct _GResource GResource
Definition giotypes.h:130
unsigned int guint32
Definition glibconfig.h:57
unsigned char guint8
Definition glibconfig.h:46
unsigned long gsize
Definition glibconfig.h:83
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
G_BEGIN_DECLS typedef guint32 GQuark
Definition gquark.h:38
GIO_AVAILABLE_IN_2_32 GType g_resource_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_2_32 GResource * g_resource_ref(GResource *resource)
GIO_AVAILABLE_IN_2_32 void g_static_resource_init(GStaticResource *static_resource)
GIO_AVAILABLE_IN_2_32 void g_resources_unregister(GResource *resource)
GIO_AVAILABLE_IN_2_32 GQuark g_resource_error_quark(void)
GIO_AVAILABLE_IN_2_32 void g_resources_register(GResource *resource)
GIO_AVAILABLE_IN_2_32 GInputStream * g_resources_open_stream(const char *path, GResourceLookupFlags lookup_flags, GError **error)
GIO_AVAILABLE_IN_2_32 void g_static_resource_fini(GStaticResource *static_resource)
GIO_AVAILABLE_IN_2_32 gboolean g_resources_get_info(const char *path, GResourceLookupFlags lookup_flags, gsize *size, guint32 *flags, GError **error)
GIO_AVAILABLE_IN_2_32 GInputStream * g_resource_open_stream(GResource *resource, const char *path, GResourceLookupFlags lookup_flags, GError **error)
GIO_AVAILABLE_IN_2_32 char ** g_resources_enumerate_children(const char *path, GResourceLookupFlags lookup_flags, GError **error)
GIO_AVAILABLE_IN_2_32 GResource * g_resource_load(const gchar *filename, GError **error)
GIO_AVAILABLE_IN_2_32 GResource * g_resource_new_from_data(GBytes *data, GError **error)
GIO_AVAILABLE_IN_2_32 gboolean g_resource_get_info(GResource *resource, const char *path, GResourceLookupFlags lookup_flags, gsize *size, guint32 *flags, GError **error)
GIO_AVAILABLE_IN_2_32 GBytes * g_resources_lookup_data(const char *path, GResourceLookupFlags lookup_flags, GError **error)
GIO_AVAILABLE_IN_2_32 char ** g_resource_enumerate_children(GResource *resource, const char *path, GResourceLookupFlags lookup_flags, GError **error)
GIO_AVAILABLE_IN_2_32 GResource * g_static_resource_get_resource(GStaticResource *static_resource)
GIO_AVAILABLE_IN_2_32 GBytes * g_resource_lookup_data(GResource *resource, const char *path, GResourceLookupFlags lookup_flags, GError **error)
GIO_AVAILABLE_IN_2_32 void g_resource_unref(GResource *resource)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
void * gpointer
Definition gtypes.h:109
static void error(LoadState *S, const char *why)
GStaticResource * next
Definition gresource.h:60
gpointer padding
Definition gresource.h:61
GResource * resource
Definition gresource.h:59
const guint8 * data
Definition gresource.h:57