summaryrefslogtreecommitdiff
path: root/src/persistence_client_library_prct_access.c
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2014-11-28 10:53:17 +0100
committerIngo Huerner <ingo.huerner@xse.de>2014-11-28 10:53:17 +0100
commit91b7686d94755190289cde6667f49bb7c34fa234 (patch)
treef67bcb1503276330842892a7bac62f4c3b52a00c /src/persistence_client_library_prct_access.c
parent7fd1847eb1e25aef9c0a15a6358d6f3bbba99cf7 (diff)
downloadpersistence-client-library-91b7686d94755190289cde6667f49bb7c34fa234.tar.gz
implemented write to configurable default data; added defines to pcl header for writing node and configurable default data
Diffstat (limited to 'src/persistence_client_library_prct_access.c')
-rw-r--r--src/persistence_client_library_prct_access.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/persistence_client_library_prct_access.c b/src/persistence_client_library_prct_access.c
index 9fa681b..96db5cc 100644
--- a/src/persistence_client_library_prct_access.c
+++ b/src/persistence_client_library_prct_access.c
@@ -188,7 +188,7 @@ int get_db_context(PersistenceInfo_s* dbContext, const char* resource_id, unsign
rval = EPERS_NOPRCTABLE;
}
- if((resourceFound == 0) && (dbContext->context.ldbid == 0xFF) ) // create only when the resource is local data
+ if((resourceFound == 0) && (dbContext->context.ldbid == PCL_LDBID_LOCAL) ) // create only when the resource is local data
{
//
// resource NOT found in resource table ==> default is local cached key
@@ -233,7 +233,7 @@ int get_db_path_and_key(PersistenceInfo_s* dbContext, const char* resource_id, c
//
// create resource database key
//
- if(((dbContext->context.ldbid < 0x80) || (dbContext->context.ldbid == 0xFF)) && (NULL != dbKey))
+ if(((dbContext->context.ldbid < 0x80) || (dbContext->context.ldbid == PCL_LDBID_LOCAL)) && (NULL != dbKey))
{
// The LDBID is used to find the DBID in the resource table.
if((dbContext->context.user_no == 0) && (dbContext->context.seat_no == 0))
@@ -262,7 +262,7 @@ int get_db_path_and_key(PersistenceInfo_s* dbContext, const char* resource_id, c
storePolicy = PersistenceStorage_local;
}
- if((dbContext->context.ldbid >= 0x80) && (dbContext->context.ldbid != 0xFF) && (NULL != dbKey))
+ if((dbContext->context.ldbid >= 0x80) && (dbContext->context.ldbid != PCL_LDBID_LOCAL) && (NULL != dbKey))
{
// The LDBID is used to find the DBID in the resource table.
// /<LDBID parameter> is added in front of the resource ID as the key string.
@@ -288,7 +288,7 @@ int get_db_path_and_key(PersistenceInfo_s* dbContext, const char* resource_id, c
{
// S H A R E D database
- if(dbContext->context.ldbid != 0)
+ if(dbContext->context.ldbid != PCL_LDBID_PUBLIC)
{
// Additionally /GROUP/<LDBID_parameter> shall be added inside of the database path listed in the resource table. (Off target)
//