[tracker/wip/carlosg/portal: 43/61] libtracker-sparql: Export DBus endpoint structs in private header
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/portal: 43/61] libtracker-sparql: Export DBus endpoint structs in private header
- Date: Sun, 5 Jul 2020 16:29:11 +0000 (UTC)
commit c8b985648b345ea971ad7ac456f186e83946e55d
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jan 23 12:15:20 2020 +0100
libtracker-sparql: Export DBus endpoint structs in private header
We want to make subclassing possible privately (i.e. for the xdg
portal), but not externally. Define both instance and class structs
in the private header.
src/libtracker-sparql/tracker-endpoint-dbus.c | 10 ----------
src/libtracker-sparql/tracker-private.h | 13 +++++++++++++
2 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-endpoint-dbus.c b/src/libtracker-sparql/tracker-endpoint-dbus.c
index 70ecd8397..89de4f1e2 100644
--- a/src/libtracker-sparql/tracker-endpoint-dbus.c
+++ b/src/libtracker-sparql/tracker-endpoint-dbus.c
@@ -62,16 +62,6 @@ enum {
N_PROPS
};
-struct _TrackerEndpointDBus {
- TrackerEndpoint parent_instance;
- GDBusConnection *dbus_connection;
- gchar *object_path;
- guint register_id;
- GDBusNodeInfo *node_info;
- GCancellable *cancellable;
- TrackerNotifier *notifier;
-};
-
typedef struct {
TrackerEndpointDBus *endpoint;
GDBusMethodInvocation *invocation;
diff --git a/src/libtracker-sparql/tracker-private.h b/src/libtracker-sparql/tracker-private.h
index 676d328f9..5f81bb192 100644
--- a/src/libtracker-sparql/tracker-private.h
+++ b/src/libtracker-sparql/tracker-private.h
@@ -21,6 +21,7 @@
#define __TRACKER_PRIVATE_H__
#include "tracker-cursor.h"
+#include "tracker-endpoint-dbus.h"
typedef struct _TrackerSparqlConnectionClass TrackerSparqlConnectionClass;
@@ -132,6 +133,18 @@ struct _TrackerEndpointClass {
GObjectClass parent_class;
};
+typedef struct _TrackerEndpointDBus TrackerEndpointDBus;
+
+struct _TrackerEndpointDBus {
+ TrackerEndpoint parent_instance;
+ GDBusConnection *dbus_connection;
+ gchar *object_path;
+ guint register_id;
+ GDBusNodeInfo *node_info;
+ GCancellable *cancellable;
+ TrackerNotifier *notifier;
+};
+
typedef struct _TrackerEndpointDBusClass TrackerEndpointDBusClass;
struct _TrackerEndpointDBusClass {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]