After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 705944 - core: Add grl_operation_set_data_full()
core: Add grl_operation_set_data_full()
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: core
unspecified
Other All
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2013-08-13 23:30 UTC by Emanuele Aina
Modified: 2013-08-20 21:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
core: Add grl_operation_set_data_full() (2.72 KB, patch)
2013-08-13 23:30 UTC, Emanuele Aina
committed Details | Review

Description Emanuele Aina 2013-08-13 23:30:18 UTC
Let users specify a destroy function to offload to Grilo the management
of the registered data lifecycle.

The current alternative is to explicitly free the registered data when
completing the operation by invoking its callback. This may become particularly
annoying and prone to errors when the callback can be invoked in diffent place
while handling errors in a multiple steps operation.
Comment 1 Emanuele Aina 2013-08-13 23:30:20 UTC
Created attachment 251554 [details] [review]
core: Add grl_operation_set_data_full()

Let users specify a destroy function to offload to Grilo the management
of the registered data lifecycle.
Comment 2 Juan A. Suarez Romero 2013-08-20 21:22:47 UTC
commit 67f4b69ad785bd55f2aefd01b857c5ec2da3cba0
Author: Emanuele Aina <emanuele.aina@collabora.com>
Date:   Mon Aug 12 20:14:28 2013 +0200

    core: Add grl_operation_set_data_full()
    
    Let users specify a destroy function to offload to Grilo the management
    of the registered data lifecycle.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705944

 src/grl-operation.c | 26 ++++++++++++++++++++++++++
 src/grl-operation.h |  2 ++
 2 files changed, 28 insertions(+)