summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi-Soo An <yisooan@gmail.com>2018-07-11 14:33:44 +0900
committerVictor Toso <me@victortoso.com>2018-07-13 11:46:36 +0200
commitaa44edd82f0c2960173a7cfaf4a4f2c1b52b64cf (patch)
tree4c03ba864856cc8e48932a31e72af07688f891f2
parent317d77de3b44030e972e51d4a470870e2dc6aef4 (diff)
downloadgrilo-aa44edd82f0c2960173a7cfaf4a4f2c1b52b64cf.tar.gz
operation-options: Add G_DEFINE_AUTOPTR_CLEANUP_FUNC
To support g_autoptr, it is added. https://gitlab.gnome.org/GNOME/grilo/merge_requests/10
-rw-r--r--src/grl-operation-options.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/grl-operation-options.h b/src/grl-operation-options.h
index 5e4ef60..a6c3ee9 100644
--- a/src/grl-operation-options.h
+++ b/src/grl-operation-options.h
@@ -56,6 +56,8 @@ typedef struct {
gpointer _grl_reserved[GRL_PADDING];
} GrlOperationOptionsClass;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GrlOperationOptions, g_object_unref)
+
#define GRL_TYPE_OPERATION_OPTIONS (grl_operation_options_get_type ())
#define GRL_OPERATION_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRL_TYPE_OPERATION_OPTIONS, GrlOperationOptions))
#define GRL_OPERATION_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRL_TYPE_OPERATION_OPTIONS, GrlOperationOptionsClass))