[tracker/gdbus: 49/101] tracker-extract: Move interface_vtable into function it is used in
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus: 49/101] tracker-extract: Move interface_vtable into function it is used in
- Date: Tue, 18 Jan 2011 08:50:19 +0000 (UTC)
commit 37ef53eaa6f525d7d5ed8eb8bf192eeea49bd55e
Author: Martyn Russell <martyn lanedo com>
Date: Tue Jan 4 16:17:26 2011 +0000
tracker-extract: Move interface_vtable into function it is used in
src/tracker-extract/tracker-extract.c | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index 5b15c65..7a82389 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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]