[tracker] tracker-store: Removed the last of the unused tracker-main.h APIs
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-store: Removed the last of the unused tracker-main.h APIs
- Date: Mon, 2 Nov 2009 13:20:57 +0000 (UTC)
commit f59478b00dd58e88f1d5ec9c24e3d33fd0dac6c4
Author: Martyn Russell <martyn lanedo com>
Date: Mon Nov 2 13:19:26 2009 +0000
tracker-store: Removed the last of the unused tracker-main.h APIs
src/tracker-store/Makefile.am | 1 -
src/tracker-store/tracker-dbus.c | 1 -
src/tracker-store/tracker-main.c | 46 ++++++++++++--------------------
src/tracker-store/tracker-main.h | 35 ------------------------
src/tracker-store/tracker-statistics.c | 1 -
5 files changed, 17 insertions(+), 67 deletions(-)
---
diff --git a/src/tracker-store/Makefile.am b/src/tracker-store/Makefile.am
index f0fc4fc..b712417 100644
--- a/src/tracker-store/Makefile.am
+++ b/src/tracker-store/Makefile.am
@@ -36,7 +36,6 @@ tracker_store_SOURCES = \
tracker-events.c \
tracker-events.h \
tracker-main.c \
- tracker-main.h \
tracker-resources.c \
tracker-resources.h \
tracker-push.c \
diff --git a/src/tracker-store/tracker-dbus.c b/src/tracker-store/tracker-dbus.c
index 21cdce7..9c7b975 100644
--- a/src/tracker-store/tracker-dbus.c
+++ b/src/tracker-store/tracker-dbus.c
@@ -42,7 +42,6 @@
#include "tracker-backup.h"
#include "tracker-backup-glue.h"
#include "tracker-marshal.h"
-#include "tracker-main.h"
static DBusGConnection *connection;
static DBusGProxy *gproxy;
diff --git a/src/tracker-store/tracker-main.c b/src/tracker-store/tracker-main.c
index e2abcd2..b42dbcb 100644
--- a/src/tracker-store/tracker-main.c
+++ b/src/tracker-store/tracker-main.c
@@ -53,7 +53,6 @@
#include "tracker-dbus.h"
#include "tracker-config.h"
#include "tracker-events.h"
-#include "tracker-main.h"
#include "tracker-push.h"
#include "tracker-backup.h"
#include "tracker-store.h"
@@ -152,6 +151,22 @@ sanity_check_option_values (TrackerConfig *config)
readonly_mode ? "yes" : "no");
}
+static void
+shutdown (void)
+{
+ TrackerMainPrivate *private;
+
+ private = g_static_private_get (&private_key);
+
+ if (private) {
+ if (private->main_loop) {
+ g_main_loop_quit (private->main_loop);
+ }
+
+ private->shutdown = TRUE;
+ }
+}
+
static gboolean
shutdown_timeout_cb (gpointer user_data)
{
@@ -175,7 +190,7 @@ signal_handler (int signo)
case SIGTERM:
case SIGINT:
in_loop = TRUE;
- tracker_shutdown ();
+ shutdown ();
default:
if (g_strsignal (signo)) {
@@ -444,30 +459,3 @@ shutdown:
return EXIT_SUCCESS;
}
-
-void
-tracker_shutdown (void)
-{
- TrackerMainPrivate *private;
-
- private = g_static_private_get (&private_key);
-
- if (private) {
- if (private->main_loop) {
- g_main_loop_quit (private->main_loop);
- }
-
- private->shutdown = TRUE;
- }
-}
-
-void
-tracker_set_reindex_on_shutdown (gboolean value)
-{
- TrackerMainPrivate *private;
-
- private = g_static_private_get (&private_key);
-
- private->reindex_on_shutdown = value;
-}
-
diff --git a/src/tracker-store/tracker-statistics.c b/src/tracker-store/tracker-statistics.c
index 6626403..4dc8849 100644
--- a/src/tracker-store/tracker-statistics.c
+++ b/src/tracker-store/tracker-statistics.c
@@ -34,7 +34,6 @@
#include <libtracker-data/tracker-data-manager.h>
#include "tracker-dbus.h"
-#include "tracker-main.h"
#include "tracker-marshal.h"
#include "tracker-store.h"
#include "tracker-statistics.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]