[tracker/wip/rishi/endpoint-g_auto] libtracker-sparql: Add autocleanups for TrackerEndpoint sub-classes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/rishi/endpoint-g_auto] libtracker-sparql: Add autocleanups for TrackerEndpoint sub-classes
- Date: Sun, 4 Apr 2021 00:14:09 +0000 (UTC)
commit 63fd3dd678f9078cd3eb4e6350c452bdb5bf0d17
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Apr 4 02:13:23 2021 +0200
libtracker-sparql: Add autocleanups for TrackerEndpoint sub-classes
TrackerEndpointDBus and TrackerEndpointHttp are derivable classes
within the tracker.git codebase, but final outside it. This prevents
them from using the G_DECLARE_DERIVABLE_TYPE macro.
Therefore the cleanup functions for them need to be separately defined.
src/libtracker-sparql/tracker-endpoint-dbus.h | 2 ++
src/libtracker-sparql/tracker-endpoint-http.h | 2 ++
2 files changed, 4 insertions(+)
---
diff --git a/src/libtracker-sparql/tracker-endpoint-dbus.h b/src/libtracker-sparql/tracker-endpoint-dbus.h
index bf76251a0..36673ab41 100644
--- a/src/libtracker-sparql/tracker-endpoint-dbus.h
+++ b/src/libtracker-sparql/tracker-endpoint-dbus.h
@@ -44,6 +44,8 @@
*/
typedef struct _TrackerEndpointDBus TrackerEndpointDBus;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (TrackerEndpointDBus, g_object_unref);
+
TRACKER_AVAILABLE_IN_ALL
GType tracker_endpoint_dbus_get_type (void) G_GNUC_CONST;
diff --git a/src/libtracker-sparql/tracker-endpoint-http.h b/src/libtracker-sparql/tracker-endpoint-http.h
index 40ef38591..e808698b8 100644
--- a/src/libtracker-sparql/tracker-endpoint-http.h
+++ b/src/libtracker-sparql/tracker-endpoint-http.h
@@ -44,6 +44,8 @@
*/
typedef struct _TrackerEndpointHttp TrackerEndpointHttp;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (TrackerEndpointHttp, g_object_unref);
+
TRACKER_AVAILABLE_IN_3_1
GType tracker_endpoint_http_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]