summaryrefslogtreecommitdiffstats
path: root/src/hal-common.c
diff options
context:
space:
mode:
authorteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2005-11-21 21:43:16 +0000
committerteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2005-11-21 21:43:16 +0000
commitc7b172c21cf2ed261e18ea924306eb1c270b4fa3 (patch)
tree248bf82d6b67c3d023d91d231ec0abbb6c6bb553 /src/hal-common.c
parent74122f8eb5a1b271b2ba89fcc265b0ce4b740d18 (diff)
2005-11-21 Christophe Fergeau <teuf@gnome.org>
* src/hal-common.c: * src/ipod-device.c: marked some functions as static git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1160 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/hal-common.c')
-rw-r--r--src/hal-common.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/hal-common.c b/src/hal-common.c
index 0e731b6..be37f5f 100644
--- a/src/hal-common.c
+++ b/src/hal-common.c
@@ -58,36 +58,7 @@
#include "hal-common.h"
-#ifdef HAVE_LIBHAL
-
-#include <dbus/dbus.h>
-#include <dbus/dbus-glib.h>
-#include <dbus/dbus-glib-lowlevel.h>
-
-static GMainContext *ipod_device_global_main_context = NULL;
-
-dbus_bool_t
-hal_mainloop_integration(LibHalContext *ctx, DBusError *error)
-{
- DBusConnection *dbus_connection;
-
- dbus_connection = dbus_bus_get(DBUS_BUS_SYSTEM, error);
-
- if(dbus_error_is_set(error))
- return FALSE;
-
- dbus_connection_setup_with_g_main(dbus_connection,
- ipod_device_global_main_context);
- libhal_ctx_set_dbus_connection(ctx, dbus_connection);
-
- return TRUE;
-}
-
-void ipod_device_set_global_main_context(GMainContext *ctx)
-{
- ipod_device_global_main_context = ctx;
-}
-#else
+#ifndef HAVE_LIBHAL
gchar **libhal_manager_find_device_string_match (LibHalContext *hal_ctx,
const gchar *type,
const gchar *str,