diff options
author | Richard Hughes <richard@hughsie.com> | 2015-09-14 11:51:53 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-09-14 11:51:53 +0100 |
commit | 55cf07cba0f39cc6dbff0cb86c8c42920d7edf2a (patch) | |
tree | 83c4ce06e4f05b3b1793537f2c49b6884b1224e0 /libappstream-glib/as-node.h | |
parent | dc22accbc209994aca5a3b60d7d9f6b04e44c23a (diff) | |
download | appstream-glib-55cf07cba0f39cc6dbff0cb86c8c42920d7edf2a.tar.gz |
Use specific types to remove the last _cleanup_free usage
Diffstat (limited to 'libappstream-glib/as-node.h')
-rw-r--r-- | libappstream-glib/as-node.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-node.h b/libappstream-glib/as-node.h index af14723..a5d7fc3 100644 --- a/libappstream-glib/as-node.h +++ b/libappstream-glib/as-node.h @@ -114,6 +114,8 @@ typedef enum { #define AS_NODE_ERROR as_node_error_quark () +typedef GNode AsNode; + GNode *as_node_new (void); GQuark as_node_error_quark (void); void as_node_unref (GNode *node); @@ -192,6 +194,8 @@ void as_node_insert_hash (GNode *parent, GHashTable *hash, AsNodeInsertFlags insert_flags); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(AsNode, as_node_unref) + G_END_DECLS #endif /* __AS_NODE_H */ |