diff options
author | Benjamin Otte <otte@redhat.com> | 2016-12-23 08:03:36 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-12-23 08:11:01 +0100 |
commit | 4bb0c70c11c4b2af65bc66ca8a8d1c8cecbb7e92 (patch) | |
tree | faa0616ceb1c81c322b80516875331043cff2418 /gsk/gskrendernodeprivate.h | |
parent | 4e866ec06bbaee5d4ba82a8a72bb0f1784c955c0 (diff) | |
download | gtk+-4bb0c70c11c4b2af65bc66ca8a8d1c8cecbb7e92.tar.gz |
gsk: Add docs and error handling to serialization API
Diffstat (limited to 'gsk/gskrendernodeprivate.h')
-rw-r--r-- | gsk/gskrendernodeprivate.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gsk/gskrendernodeprivate.h b/gsk/gskrendernodeprivate.h index 25c10ea7e2..1139e51da8 100644 --- a/gsk/gskrendernodeprivate.h +++ b/gsk/gskrendernodeprivate.h @@ -35,13 +35,14 @@ struct _GskRenderNodeClass void (* draw) (GskRenderNode *node, cairo_t *cr); GVariant * (* serialize) (GskRenderNode *node); - GskRenderNode * (* deserialize) (GVariant *variant); + GskRenderNode * (* deserialize) (GVariant *variant, + GError **error); }; GskRenderNode *gsk_render_node_new (const GskRenderNodeClass *node_class, gsize extra_size); GVariant * gsk_render_node_serialize_node (GskRenderNode *node); -GskRenderNode * gsk_render_node_deserialize_node (GskRenderNodeType type, GVariant *variant); +GskRenderNode * gsk_render_node_deserialize_node (GskRenderNodeType type, GVariant *variant, GError **error); double gsk_opacity_node_get_opacity (GskRenderNode *node); |