[libgdata/wip/oholy/documents-shared-drives-support: 1/4] core: Define G_DEFINE_AUTOPTR_CLEANUP_FUNC for GDataQuery
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/wip/oholy/documents-shared-drives-support: 1/4] core: Define G_DEFINE_AUTOPTR_CLEANUP_FUNC for GDataQuery
- Date: Thu, 11 Feb 2021 14:33:38 +0000 (UTC)
commit c15daee6bc676e1dbeb2dba7e53d794565509da2
Author: Ondrej Holy <oholy redhat com>
Date: Thu Feb 11 15:24:07 2021 +0100
core: Define G_DEFINE_AUTOPTR_CLEANUP_FUNC for GDataQuery
The cleanup function is not defined for GDataQuery, which prevents
G_DECLARE_DERIVABLE_TYPE use for its subclasses. Let's define it
so G_DECLARE_DERIVABLE_TYPE can be used in the subsequent commits.
gdata/gdata-query.h | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gdata/gdata-query.h b/gdata/gdata-query.h
index f80cc8c0..52796a4d 100644
--- a/gdata/gdata-query.h
+++ b/gdata/gdata-query.h
@@ -66,6 +66,7 @@ typedef struct {
} GDataQueryClass;
GType gdata_query_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataQuery, g_object_unref)
GDataQuery *gdata_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
GDataQuery *gdata_query_new_with_limits (const gchar *q, guint start_index, guint max_results)
G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]