[tracker/wip/carlosg/tracker-3.0-api-breaks: 71/79] libtracker-sparql: Add GType for TrackerNotifierEvent
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/tracker-3.0-api-breaks: 71/79] libtracker-sparql: Add GType for TrackerNotifierEvent
- Date: Mon, 27 Jan 2020 13:01:01 +0000 (UTC)
commit b9168ab7e4d6b9bc6c4da4891220b868d4a7d4fa
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jan 27 00:30:47 2020 +0100
libtracker-sparql: Add GType for TrackerNotifierEvent
In order to help bindings.
docs/reference/libtracker-sparql/libtracker-sparql-sections.txt | 2 ++
src/libtracker-sparql/tracker-notifier.c | 5 +++++
src/libtracker-sparql/tracker-notifier.h | 4 ++++
3 files changed, 11 insertions(+)
---
diff --git a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
index 820bbf9bb..33f9d7f0d 100644
--- a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
+++ b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
@@ -221,6 +221,8 @@ TRACKER_NOTIFIER_CLASS
TRACKER_NOTIFIER_GET_CLASS
TRACKER_TYPE_NOTIFIER
tracker_notifier_get_type
+TRACKER_TYPE_NOTIFIER_EVENT
+tracker_notifier_event_get_type
TRACKER_TYPE_NOTIFIER_EVENT_TYPE
tracker_notifier_event_type_get_type
TRACKER_TYPE_NOTIFIER_FLAGS
diff --git a/src/libtracker-sparql/tracker-notifier.c b/src/libtracker-sparql/tracker-notifier.c
index db05dc1fb..d1e31446f 100644
--- a/src/libtracker-sparql/tracker-notifier.c
+++ b/src/libtracker-sparql/tracker-notifier.c
@@ -168,6 +168,11 @@ tracker_notifier_event_unref (TrackerNotifierEvent *event)
}
}
+G_DEFINE_BOXED_TYPE (TrackerNotifierEvent,
+ tracker_notifier_event,
+ tracker_notifier_event_ref,
+ tracker_notifier_event_unref)
+
static gint
compare_event_cb (gconstpointer a,
gconstpointer b,
diff --git a/src/libtracker-sparql/tracker-notifier.h b/src/libtracker-sparql/tracker-notifier.h
index 93acb8d03..28f452e93 100644
--- a/src/libtracker-sparql/tracker-notifier.h
+++ b/src/libtracker-sparql/tracker-notifier.h
@@ -28,6 +28,7 @@
#include <libtracker-sparql/tracker-version.h>
#define TRACKER_TYPE_NOTIFIER (tracker_notifier_get_type ())
+#define TRACKER_TYPE_NOTIFIER_EVENT (tracker_notifier_event_get_type ())
TRACKER_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (TrackerNotifier, tracker_notifier, TRACKER, NOTIFIER, GObject)
@@ -69,6 +70,9 @@ TRACKER_AVAILABLE_IN_ALL
void tracker_notifier_signal_unsubscribe (TrackerNotifier *notifier,
guint handler_id);
+TRACKER_AVAILABLE_IN_ALL
+GType tracker_notifier_event_get_type (void) G_GNUC_CONST;
+
TRACKER_AVAILABLE_IN_ALL
TrackerNotifierEventType
tracker_notifier_event_get_event_type (TrackerNotifierEvent *event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]