Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkcontentserializer.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2017 Benjamin Otte
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
21#error "Only <gdk/gdk.h> can be included directly."
22#endif
23
24#include <gdk/gdktypes.h>
25
27
28#define GDK_TYPE_CONTENT_SERIALIZER (gdk_content_serializer_get_type ())
29#define GDK_CONTENT_SERIALIZER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_CONTENT_SERIALIZER, GdkContentSerializer))
30#define GDK_IS_CONTENT_SERIALIZER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_CONTENT_SERIALIZER))
31
32typedef struct _GdkContentSerializer GdkContentSerializer;
33
34/**
35 * GdkContentSerializeFunc:
36 * @serializer: a `GdkContentSerializer`
37 *
38 * The type of a function that can be registered with gdk_content_register_serializer().
39 *
40 * When the function gets called to operate on content, it can call functions on the
41 * @serializer object to obtain the mime type, output stream, user data, etc. for its
42 * operation.
43 */
44typedef void (* GdkContentSerializeFunc) (GdkContentSerializer *serializer);
45
48
65 gpointer data,
66 GDestroyNotify notify);
69
74 GError *error);
75
80
83 const char *mime_type,
85 gpointer data,
86 GDestroyNotify notify);
89 const char *mime_type,
90 const GValue *value,
91 int io_priority,
92 GCancellable *cancellable,
93 GAsyncReadyCallback callback,
94 gpointer user_data);
97 GError **error);
98
99
101
const char * mime_type
Definition civetweb.c:8224
#define GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_formats_union_serialize_gtypes(GdkContentFormats *formats)
GDK_AVAILABLE_IN_ALL gpointer gdk_content_serializer_get_task_data(GdkContentSerializer *serializer)
GDK_AVAILABLE_IN_ALL void gdk_content_serializer_set_task_data(GdkContentSerializer *serializer, gpointer data, GDestroyNotify notify)
void(* GdkContentSerializeFunc)(GdkContentSerializer *serializer)
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_formats_union_serialize_mime_types(GdkContentFormats *formats)
GDK_AVAILABLE_IN_ALL void gdk_content_serializer_return_error(GdkContentSerializer *serializer, GError *error)
struct _GdkContentSerializer GdkContentSerializer
GDK_AVAILABLE_IN_ALL gboolean gdk_content_serialize_finish(GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_ALL void gdk_content_register_serializer(GType type, const char *mime_type, GdkContentSerializeFunc serialize, gpointer data, GDestroyNotify notify)
GDK_AVAILABLE_IN_ALL GType gdk_content_serializer_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL void gdk_content_serialize_async(GOutputStream *stream, const char *mime_type, const GValue *value, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_ALL GOutputStream * gdk_content_serializer_get_output_stream(GdkContentSerializer *serializer)
GDK_AVAILABLE_IN_ALL const char * gdk_content_serializer_get_mime_type(GdkContentSerializer *serializer)
GDK_AVAILABLE_IN_ALL const GValue * gdk_content_serializer_get_value(GdkContentSerializer *serializer)
GDK_AVAILABLE_IN_ALL GCancellable * gdk_content_serializer_get_cancellable(GdkContentSerializer *serializer)
GDK_AVAILABLE_IN_ALL int gdk_content_serializer_get_priority(GdkContentSerializer *serializer)
GDK_AVAILABLE_IN_ALL void gdk_content_serializer_return_success(GdkContentSerializer *serializer)
GDK_AVAILABLE_IN_ALL gpointer gdk_content_serializer_get_user_data(GdkContentSerializer *serializer)
GDK_AVAILABLE_IN_ALL GType gdk_content_serializer_get_gtype(GdkContentSerializer *serializer)
struct _GdkContentFormats GdkContentFormats
Definition gdktypes.h:79
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
void(* GDestroyNotify)(gpointer data)
Definition gtypes.h:140
int value
Definition lsqlite3.c:2155
static void error(LoadState *S, const char *why)