summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2014-05-05 14:59:50 +0200
committerIngo Huerner <ingo.huerner@xse.de>2014-05-05 14:59:50 +0200
commit2cb97c5860b58b12bac1789ebb0f93513f91fade (patch)
tree7a990a556b05d5e14fe7e25a75dcd96e6ed838ba
parenta6073d19e4298ec479ffa78cdce79b2ec5dca91a (diff)
downloadpersistence-client-library-2cb97c5860b58b12bac1789ebb0f93513f91fade.tar.gz
Use defines from common part
-rw-r--r--configure.ac2
-rw-r--r--src/persistence_client_library_data_organization.h22
2 files changed, 13 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 92a4483..2c7f02f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -115,7 +115,7 @@ else
fi
######################################################################
-# enable persistence file cahce component ###########
+# enable persistence file cache component ###########
AC_ARG_ENABLE([filecache],
[AS_HELP_STRING([--enable-filecache],[Enable file cache component])],
[use_filecache=$enableval],
diff --git a/src/persistence_client_library_data_organization.h b/src/persistence_client_library_data_organization.h
index f6c8144..64aee36 100644
--- a/src/persistence_client_library_data_organization.h
+++ b/src/persistence_client_library_data_organization.h
@@ -30,6 +30,8 @@ extern "C" {
#include "../include/persistence_client_library_key.h"
#include <persComRct.h>
+#include <persComDbAccess.h>
+#include <persComDataOrg.h>
#include <dlt/dlt.h>
#include <dlt/dlt_common.h>
@@ -113,14 +115,14 @@ enum _PersistenceConstantDef
DbusSubMatchSize = 12, /// max character sub match size
DbusMatchRuleSize = 300, /// max character size of the dbus match rule size
- PrctKeySize = 64, /// persistence resource config table max key size
- PrctValueSize = 256, /// persistence resource config table max value size
+ PrctKeySize = PERS_RCT_MAX_LENGTH_RESOURCE_ID, /// persistence resource config table max key size
+ PrctValueSize = sizeof(PersistenceConfigurationKey_s), /// persistence resource config table max value size
PrctDbTableSize = 1024, /// number of persistence resource config tables to store
RDRWBufferSize = 1024, /// write buffer size
- DbKeySize = 64, /// database max key size
- DbValueSize = 16384, /// database max value size
+ DbKeySize = PERS_DB_MAX_LENGTH_KEY_NAME, /// database max key size
+ DbValueSize = PERS_DB_MAX_SIZE_KEY_DATA, /// database max value size
DbTableSize = 1024, /// database table size
PasMsg_Block = 0x0001, /// persistence administration service block access
@@ -131,18 +133,18 @@ enum _PersistenceConstantDef
PasErrorStatus_OK = 0x0002, /// persistence administration service msg return status
PasErrorStatus_FAIL = 0x8000, /// persistence administration service msg return status
- CustLibMaxLen = 128, /// max length of the custom library name and path
- DbKeyMaxLen = 128, /// max database key length
- DbResIDMaxLen = 128, /// max database key length
- DbPathMaxLen = 128, /// max database path length
- MaxAppNameLen = 128, /// max application name
+ CustLibMaxLen = PERS_RCT_MAX_LENGTH_CUSTOM_NAME, /// max length of the custom library name and path
+ DbKeyMaxLen = PERS_DB_MAX_LENGTH_KEY_NAME, /// max database key length
+ DbResIDMaxLen = PERS_DB_MAX_LENGTH_KEY_NAME, /// max database key length
+ DbPathMaxLen = PERS_ORG_MAX_LENGTH_PATH_FILENAME, /// max database path length
+ MaxAppNameLen = PERS_RCT_MAX_LENGTH_RESPONSIBLE, /// max application name
MaxPersHandle = 256, /// max number of parallel open persistence handles
MaxConfKeyLengthResp = 32, /// length of the config key responsible name
MaxConfKeyLengthCusName = 32, /// length of the config key custom name
MaxRctLengthCustom_ID = 64, /// length of the customer ID
- defaultMaxKeyValDataSize = 16384 /// default limit the key-value data size to 16kB
+ defaultMaxKeyValDataSize = PERS_DB_MAX_SIZE_KEY_DATA /// default limit the key-value data size to 16kB
};