From b5c52f74865d8e95db66a36fae4acb23ed22f16f Mon Sep 17 00:00:00 2001 From: Ingo Huerner Date: Fri, 9 May 2014 05:19:48 +0200 Subject: Code cleanup and optimisation --- src/persistence_client_library_dbus_cmd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/persistence_client_library_dbus_cmd.c') diff --git a/src/persistence_client_library_dbus_cmd.c b/src/persistence_client_library_dbus_cmd.c index 45b7a8f..296f8d9 100644 --- a/src/persistence_client_library_dbus_cmd.c +++ b/src/persistence_client_library_dbus_cmd.c @@ -16,18 +16,17 @@ * @see */ +#include +#include /* For dlclose() */ #include "persistence_client_library_dbus_cmd.h" #include "persistence_client_library_handle.h" #include "persistence_client_library_custom_loader.h" +#include "persistence_client_library_prct_access.h" #include "persistence_client_library_pas_interface.h" - #include "persistence_client_library_data_organization.h" #include "persistence_client_library_db_access.h" -#include -#include - // function prototype void msg_pending_func(DBusPendingCall *call, void *data); @@ -60,12 +59,14 @@ void process_reg_notification_signal(DBusConnection* conn) dbus_bus_add_match(conn, ruleChanged, NULL); dbus_bus_add_match(conn, ruleDeleted, NULL); dbus_bus_add_match(conn, ruleCreated, NULL); + DLT_LOG(gPclDLTContext, DLT_LOG_VERBOSE, DLT_STRING("Registered for change notifications:"), DLT_STRING(ruleChanged)); } else if(gNotifyPolicy == Notify_unregister) { dbus_bus_remove_match(conn, ruleChanged, NULL); dbus_bus_remove_match(conn, ruleDeleted, NULL); dbus_bus_remove_match(conn, ruleCreated, NULL); + DLT_LOG(gPclDLTContext, DLT_LOG_VERBOSE, DLT_STRING("Unregistered for change notifications:"), DLT_STRING(ruleChanged)); } dbus_connection_flush(conn); // flush the connection to add the match -- cgit v1.2.1