[librest/wip/rishi/autocleanups: 3/7] rest-params: Add autocleanup
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/rishi/autocleanups: 3/7] rest-params: Add autocleanup
- Date: Wed, 2 Jun 2021 14:59:48 +0000 (UTC)
commit 1f56c957be9992bcfad875d6091cdd7352030507
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jun 2 16:56:01 2021 +0200
rest-params: Add autocleanup
rest/rest-params.h | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/rest/rest-params.h b/rest/rest-params.h
index d35411b..d69cc6e 100644
--- a/rest/rest-params.h
+++ b/rest/rest-params.h
@@ -51,6 +51,8 @@ gboolean rest_params_iter_next (RestParamsIter *iter, const char **name, RestPar
RestParams *rest_params_ref (RestParams *params);
void rest_params_unref (RestParams *params);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(RestParams, rest_params_unref)
+
G_END_DECLS
#endif /* _REST_PARAMS */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]