[tracker/wip/carlosg/portal: 13/29] 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: 13/29] libtracker-sparql: Export DBus endpoint structs in private header
- Date: Sun, 16 Feb 2020 21:40:29 +0000 (UTC)
commit 1c6a5b041c8300ef1b9a647cc5df699fc7f97474
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 c9ef380b0..a4be827a5 100644
--- a/src/libtracker-sparql/tracker-endpoint-dbus.c
+++ b/src/libtracker-sparql/tracker-endpoint-dbus.c
@@ -61,16 +61,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 3ac055746..17790fdaf 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;
@@ -138,6 +139,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]