summaryrefslogtreecommitdiff
path: root/json-glib/json-path.h
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/json-path.h')
-rw-r--r--json-glib/json-path.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/json-glib/json-path.h b/json-glib/json-path.h
index b8ffb91..3c3ddf0 100644
--- a/json-glib/json-path.h
+++ b/json-glib/json-path.h
@@ -97,6 +97,10 @@ JsonNode * json_path_query (const char *expression,
JsonNode *root,
GError **error);
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonPath, g_object_unref)
+#endif
+
G_END_DECLS
#endif /* __JSON_PATH_H__ */