summaryrefslogtreecommitdiff
path: root/src/persistence_client_library_data_organization.c
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2013-11-18 15:44:03 +0100
committerIngo Huerner <ingo.huerner@xse.de>2013-11-18 15:44:03 +0100
commit90d08dc2cbc293ca15bec3d3ba7d96eac527c06b (patch)
treecf83ab92e5cbb62e4824cbdeed30deb85f2fe433 /src/persistence_client_library_data_organization.c
parent642106b425d871016cf5797ed379c65430388d1c (diff)
downloadpersistence-client-library-90d08dc2cbc293ca15bec3d3ba7d96eac527c06b.tar.gz
Static code analysis findings; mutex rework
Diffstat (limited to 'src/persistence_client_library_data_organization.c')
-rw-r--r--src/persistence_client_library_data_organization.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/persistence_client_library_data_organization.c b/src/persistence_client_library_data_organization.c
index 3fffe34..73d45cf 100644
--- a/src/persistence_client_library_data_organization.c
+++ b/src/persistence_client_library_data_organization.c
@@ -74,32 +74,33 @@ const char* gSharedPublicWtPathKey = "/Data/mnt-wt/%s/Shared_Public%s";
/// path prefix for local cached files: /Data/mnt_c/<appId>/<user>/<seat>/<resource>
const char* gLocalCacheFilePath = "/Data/mnt-c/%s/user/%d/seat/%d/%s";
+
const char* gChangeSignal = "PersistenceResChange";
const char* gDeleteSignal = "PersistenceResDelete";
const char* gCreateSignal = "PersistenceResCreate";
-char gSendNotifykey[DbKeyMaxLen] = {0};
-unsigned int gSendNotifyLdbid = 0;
-unsigned int gSendNotifyUserNo = 0;
-unsigned int gSendNotifySeatNo = 0;
-pclNotifyStatus_e gSendNotifyReason = 0;
-char gRegNotifykey[DbKeyMaxLen] = {0};
-unsigned int gRegNotifyLdbid = 0;
-unsigned int gRegNotifyUserNo = 0;
-unsigned int gRegNotifySeatNo = 0;
-PersNotifyRegPolicy_e gRegNotifyPolicy;
+char gNotifykey[DbKeyMaxLen] = {0};
+unsigned int gNotifyLdbid = 0;
+unsigned int gNotifyUserNo = 0;
+unsigned int gNotifySeatNo = 0;
+pclNotifyStatus_e gNotifyReason = 0;
+PersNotifyRegPolicy_e gNotifyPolicy = 0;
+
-int gTimeoutMs = 50000;
+int gTimeoutMs = 5000;
int gDbusPendingRvalue = 0;
+
/// application id
char gAppId[MaxAppNameLen] = {0};
+
/// max key value data size [default 16kB]
int gMaxKeyValDataSize = defaultMaxKeyValDataSize;
+
unsigned int gPclInitialized = PCLnotInitialized;