summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2011-01-04 16:17:26 +0000
committerJürg Billeter <j@bitron.ch>2011-01-05 17:26:27 +0100
commitf1c554e8a3779652117eec369ce522ac2bcaa2bc (patch)
treea2ec557eb5578bc2dc2591c8c094b485f9e8786f
parenta2b8e03e6590774d09a79cf57ba2830f34454183 (diff)
downloadtracker-f1c554e8a3779652117eec369ce522ac2bcaa2bc.tar.gz
tracker-extract: Move interface_vtable into function it is used in
-rw-r--r--src/tracker-extract/tracker-extract.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index e0cc557af..3a8807737 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -975,17 +975,16 @@ handle_set_property (GDBusConnection *connection,
return TRUE;
}
-static const GDBusInterfaceVTable interface_vtable = {
- handle_method_call,
- handle_get_property,
- handle_set_property
-};
-
void
tracker_extract_dbus_start (TrackerExtract *extract)
{
TrackerExtractPrivate *priv;
GError *error = NULL;
+ GDBusInterfaceVTable interface_vtable = {
+ handle_method_call,
+ handle_get_property,
+ handle_set_property
+ };
priv = TRACKER_EXTRACT_GET_PRIVATE (extract);
@@ -1011,12 +1010,12 @@ tracker_extract_dbus_start (TrackerExtract *extract)
priv->registration_id =
g_dbus_connection_register_object (priv->d_connection,
- TRACKER_EXTRACT_PATH,
- priv->introspection_data->interfaces[0],
- &interface_vtable,
- extract,
- NULL,
- &error);
+ TRACKER_EXTRACT_PATH,
+ priv->introspection_data->interfaces[0],
+ &interface_vtable,
+ extract,
+ NULL,
+ &error);
if (error) {
g_critical ("Could not register the D-Bus object "TRACKER_EXTRACT_PATH", %s",