From: christian mueller Date: Mon, 27 Feb 2012 07:43:02 +0000 (+0100) Subject: * removed simple DBus Loop from DBusWrapper - is not needed anymore since Sockethand... X-Git-Tag: build/2012-06-15.125948~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02b17a992e900ad82df8edf02e5e51e750ece36b;p=profile%2Fivi%2Faudiomanager.git * removed simple DBus Loop from DBusWrapper - is not needed anymore since Sockethandler is mandatory --- diff --git a/AudioManagerDaemon/src/DBusWrapper.cpp b/AudioManagerDaemon/src/DBusWrapper.cpp index 5a310ce..bfe6706 100644 --- a/AudioManagerDaemon/src/DBusWrapper.cpp +++ b/AudioManagerDaemon/src/DBusWrapper.cpp @@ -187,16 +187,6 @@ DBusHandlerResult DBusWrapper::cbRootIntrospection(DBusConnection *conn, DBusMes } } -void DBusWrapper::dbusMainLoop() -{ - logInfo("DBusWrapper::dbusMainLoop Entering MainLoop"); - - while (dbus_connection_read_write_dispatch(mDbusConnection, -1)) - { - - } -} - void DBusWrapper::getDBusConnection(DBusConnection *& connection) const { connection = mDbusConnection; diff --git a/includes/dbus/DBusWrapper.h b/includes/dbus/DBusWrapper.h index 24b2795..76fd2c1 100644 --- a/includes/dbus/DBusWrapper.h +++ b/includes/dbus/DBusWrapper.h @@ -40,7 +40,6 @@ namespace am class DBusWrapper { public: - DBusWrapper(); DBusWrapper(SocketHandler* socketHandler); virtual ~DBusWrapper(); @@ -59,11 +58,6 @@ public: */ void getDBusConnection(DBusConnection*& connection) const; - /** - * If Dbus is used, this MainLoop must be called as mainloop, otherwise the messages are not dispatched. - */ - void dbusMainLoop(); - static dbus_bool_t addWatch(DBusWatch *watch, void *userData); static void removeWatch(DBusWatch *watch, void *userData); static void toogleWatch(DBusWatch *watch, void *userData);