summaryrefslogtreecommitdiff
path: root/src/persistence_client_library_dbus_cmd.c
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2014-05-09 05:19:48 +0200
committerIngo Huerner <ingo.huerner@xse.de>2014-05-09 05:19:48 +0200
commitb5c52f74865d8e95db66a36fae4acb23ed22f16f (patch)
tree762f0ab543e280f68c982c7791db2029cabaff29 /src/persistence_client_library_dbus_cmd.c
parent5d04ae9d019b1072612e935eb13e198834a23b0f (diff)
downloadpersistence-client-library-b5c52f74865d8e95db66a36fae4acb23ed22f16f.tar.gz
Code cleanup and optimisation
Diffstat (limited to 'src/persistence_client_library_dbus_cmd.c')
-rw-r--r--src/persistence_client_library_dbus_cmd.c9
1 files changed, 5 insertions, 4 deletions
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 <errno.h>
+#include <dlfcn.h> /* 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 <dlfcn.h>
-#include <errno.h>
-
// 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