[tracker/rss-enclosures] libtracker-bus: Use steroids if available
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-bus: Use steroids if available
- Date: Wed, 24 Nov 2010 01:12:27 +0000 (UTC)
commit 81540827e25528bb5b529ce7bc45f6552be5874e
Author: Jürg Billeter <j bitron ch>
Date: Wed Jul 21 14:50:53 2010 +0200
libtracker-bus: Use steroids if available
configure.ac | 2 +-
src/libtracker-bus/Makefile.am | 2 ++
src/libtracker-bus/config.vapi | 23 +++++++++++++++++++++++
src/libtracker-bus/tracker-bus.vala | 3 +--
4 files changed, 27 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 324017e..85cd6b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1688,7 +1688,7 @@ if test "x$enable_dbus_fd_passing" != "xno" ; then
[have_dbus_fd_passing=no])
if test "x$have_dbus_fd_passing" = "xyes"; then
- AC_DEFINE(HAVE_DBUS_FD_PASSING, [], [Define if we have DBus >= 1.3 and want DBus FD passing])
+ AC_DEFINE(HAVE_DBUS_FD_PASSING, 1, [Define if we have DBus >= 1.3 and want DBus FD passing])
fi
else
have_dbus_fd_passing="no (disabled)"
diff --git a/src/libtracker-bus/Makefile.am b/src/libtracker-bus/Makefile.am
index 84d8184..d8bf09b 100644
--- a/src/libtracker-bus/Makefile.am
+++ b/src/libtracker-bus/Makefile.am
@@ -32,6 +32,7 @@ noinst_HEADERS = \
# Vala sources
vapi_sources = \
+ config.vapi \
$(top_srcdir)/src/libtracker-sparql/tracker-sparql-$(TRACKER_API_VERSION).vapi \
$(top_srcdir)/src/libtracker-bus/tracker-bus-fd-cursor.vapi \
$(top_srcdir)/src/libtracker-common/libtracker-common.vapi
@@ -57,6 +58,7 @@ MAINTAINERCLEANFILES = \
tracker-bus.h
EXTRA_DIST = \
+ config.vapi \
$(libtracker_bus_la_VALASOURCES) \
libtracker-bus.vala.stamp \
$(top_srcdir)/src/libtracker-bus/tracker-bus-fd-cursor.vapi
diff --git a/src/libtracker-bus/config.vapi b/src/libtracker-bus/config.vapi
new file mode 100644
index 0000000..992951e
--- /dev/null
+++ b/src/libtracker-bus/config.vapi
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2010, Nokia <ivan frade nokia com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")]
+namespace Config {
+ public const bool HAVE_DBUS_FD_PASSING;
+}
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index 9ba8f36..89f25b6 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -55,8 +55,7 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
initialized = true;
try {
- // FIXME: Test for steroids and resources interfaces?
- use_steroids = false;
+ use_steroids = Config.HAVE_DBUS_FD_PASSING;
connection = DBus.Bus.get (DBus.BusType.SESSION);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]