summaryrefslogtreecommitdiff
path: root/src/persistence_client_library_db_access.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/persistence_client_library_db_access.c')
-rw-r--r--src/persistence_client_library_db_access.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/persistence_client_library_db_access.c b/src/persistence_client_library_db_access.c
index 4137282..2dcd7ec 100644
--- a/src/persistence_client_library_db_access.c
+++ b/src/persistence_client_library_db_access.c
@@ -33,10 +33,6 @@ static int gHandlesDB[DbTableSize][PersistenceDB_LastEntry];
static int gHandlesDBCreated[DbTableSize][PersistenceDB_LastEntry] = { {0} };
-// function prototype
-int pers_send_Notification_Signal(const char* key, PersistenceDbContext_s* context, unsigned int reason);
-
-
static int database_get(PersistenceInfo_s* info, const char* dbPath, int dbType)
{
int arrayIdx = 0, handleDB = -1;
@@ -144,7 +140,7 @@ int pers_get_defaults(char* dbPath, char* key, PersistenceInfo_s* info, unsigned
{
snprintf(dltMessage, DbPathMaxLen, "%s%s", dbPath, plugin_gLocalFactoryDefault);
}
- DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("getDefaults - default data will be used for Key"), DLT_STRING(key),
+ DLT_LOG(gPclDLTContext, DLT_LOG_DEBUG, DLT_STRING("getDefaults - default data will be used for Key"), DLT_STRING(key),
DLT_STRING("from"), DLT_STRING(dltMessage));
break;
}
@@ -153,7 +149,7 @@ int pers_get_defaults(char* dbPath, char* key, PersistenceInfo_s* info, unsigned
if (read_size < 0)
{
- DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("getDefaults - default data not available for Key"), DLT_STRING(key),
+ DLT_LOG(gPclDLTContext, DLT_LOG_DEBUG, DLT_STRING("getDefaults - default data not available for Key"), DLT_STRING(key),
DLT_STRING("Path:"), DLT_STRING(dbPath));
}
@@ -237,7 +233,7 @@ int persistence_get_data(char* dbPath, char* key, const char* resourceID, Persis
}
else
{
- DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("getData - Plugin not avail, unknown loading type: "),
+ DLT_LOG(gPclDLTContext, DLT_LOG_DEBUG, DLT_STRING("getData - Plugin not avail, unknown loading type: "),
DLT_INT(getCustomLoadingType(idx)));
read_size = EPERS_COMMON;
}
@@ -277,7 +273,7 @@ int persistence_get_data(char* dbPath, char* key, const char* resourceID, Persis
(void)get_db_path_and_key(info, key, NULL, dbPath);
- DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("getData - Plugin data not available - get default data of key:"), DLT_STRING(key));
+ DLT_LOG(gPclDLTContext, DLT_LOG_DEBUG, DLT_STRING("getData - Plugin data not available - get default data of key:"), DLT_STRING(key));
ret_defaults = pers_get_defaults(dbPath, (char*)resourceID, info, buffer, buffer_size, PersGetDefault_Data);
if (0 < ret_defaults)
{
@@ -364,7 +360,7 @@ int persistence_set_data(char* dbPath, char* key, const char* resource_id, Persi
}
else
{
- DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("setData - Plugin not avail, unknown loading type: "),
+ DLT_LOG(gPclDLTContext, DLT_LOG_DEBUG, DLT_STRING("setData - Plugin not avail, unknown loading type: "),
DLT_INT(getCustomLoadingType(idx)));
write_size = EPERS_COMMON;
}
@@ -386,7 +382,6 @@ int persistence_set_data(char* dbPath, char* key, const char* resource_id, Persi
snprintf(pathKeyString, 128, "0x%08X/%s", info->context.ldbid, info->configKey.customID);
}
write_size = gPersCustomFuncs[idx].custom_plugin_set_data(pathKeyString, (char*)buffer, buffer_size);
- //write_size = persComDbWriteKey(handleDB, key, (char*)buffer, buffer_size) ;
if ((0 < write_size) && ((unsigned int)write_size == buffer_size)) /* Check return value and send notification if OK */
{
@@ -460,7 +455,7 @@ int persistence_get_data_size(char* dbPath, char* key, const char* resourceID, P
}
else
{
- DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("getDataSize - Plugin not avail, unknown loading type: "),
+ DLT_LOG(gPclDLTContext, DLT_LOG_DEBUG, DLT_STRING("getDataSize - Plugin not avail, unknown loading type: "),
DLT_INT(getCustomLoadingType(idx)));
read_size = EPERS_COMMON;
}
@@ -498,7 +493,7 @@ int persistence_get_data_size(char* dbPath, char* key, const char* resourceID, P
info->configKey.policy = PersistencePolicy_wc; /* Set the policy */
info->configKey.type = PersistenceResourceType_key; /* Set the type */
(void)get_db_path_and_key(info, key, NULL, dbPath);
- DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("getDataSize - Plugin data not avail, get size of default data for key:"),
+ DLT_LOG(gPclDLTContext, DLT_LOG_DEBUG, DLT_STRING("getDataSize - Plugin data not avail, get size of default data for key:"),
DLT_STRING(key));
ret_defaults = pers_get_defaults(dbPath, (char*)resourceID, info, NULL, 0, PersGetDefault_Size);
if (0 < ret_defaults)
@@ -574,7 +569,7 @@ int persistence_delete_data(char* dbPath, char* key, const char* resource_id, Pe
}
else
{
- DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("deleteData - Plugin not available, unknown loading type: "),
+ DLT_LOG(gPclDLTContext, DLT_LOG_DEBUG, DLT_STRING("deleteData - Plugin not available, unknown loading type: "),
DLT_INT(getCustomLoadingType(idx)));
ret = EPERS_COMMON;
}
@@ -659,9 +654,6 @@ int persistence_notify_on_change(const char* key, unsigned int ldbid, unsigned i
-
-
-
int pers_send_Notification_Signal(const char* key, PersistenceDbContext_s* context, pclNotifyStatus_e reason)
{
int rval = 1;