diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2020-11-20 23:17:04 +0900 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2020-11-20 23:17:04 +0900 |
commit | 9e86046cdb356913ae026f616e5bf17f6f238aa5 (patch) | |
tree | 1bfe1ff416fcd3951dc41828d43f1a397944ec6a /video_in_hal/nsframework/backup_manager/server/include | |
parent | 2219d0168f8f8418aee784a7542388ef064fa833 (diff) |
Remove unused directories and files in video_in_hal
The directory video_in_hal contained a lot of unnecessary
directories and files which supposed to have been accidentally
copied from staging/toyota.git druing migration.
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Change-Id: I12f2d72562bc008080ae866831d966c0b751914c
Diffstat (limited to 'video_in_hal/nsframework/backup_manager/server/include')
5 files changed, 0 insertions, 225 deletions
diff --git a/video_in_hal/nsframework/backup_manager/server/include/bkup_backupmanagerlog.h b/video_in_hal/nsframework/backup_manager/server/include/bkup_backupmanagerlog.h deleted file mode 100755 index 9df4a1c..0000000 --- a/video_in_hal/nsframework/backup_manager/server/include/bkup_backupmanagerlog.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef BACKUP_MANAGER_SERVER_INCLUDE_BKUP_BACKUPMANAGERLOG_H_ -#define BACKUP_MANAGER_SERVER_INCLUDE_BKUP_BACKUPMANAGERLOG_H_ - -#include <native_service/ns_logger_if.h> - -#define ZONE_INIT ZONEMASK(10) -#define ZONE_FUNC ZONEMASK(11) -#define ZONE_MEM ZONEMASK(12) -#define ZONE_APP ZONEMASK(13) -#define ZONE_14 ZONEMASK(14) -#define ZONE_15 ZONEMASK(15) -#define ZONE_16 ZONEMASK(16) -#define ZONE_17 ZONEMASK(17) -#define ZONE_18 ZONEMASK(18) -#define ZONE_19 ZONEMASK(19) -#define ZONE_20 ZONEMASK(20) -#define ZONE_21 ZONEMASK(21) -#define ZONE_22 ZONEMASK(22) -#define ZONE_23 ZONEMASK(23) -#define ZONE_24 ZONEMASK(24) -#define ZONE_25 ZONEMASK(25) -#define ZONE_26 ZONEMASK(26) -#define ZONE_27 ZONEMASK(27) -#define ZONE_28 ZONEMASK(28) -#define ZONE_INFO ZONEMASK(29) -#define ZONE_WARN ZONEMASK(30) -#define ZONE_ERR ZONEMASK(31) -#define ZONE_ALSA ZONEMASK(103) - -#define ZONE_TEXT_10 "Init" -#define ZONE_TEXT_11 "Function" -#define ZONE_TEXT_12 "Memory" -#define ZONE_TEXT_13 "StateMachine Example" -#define ZONE_TEXT_14 "" -#define ZONE_TEXT_15 "" -#define ZONE_TEXT_16 "" -#define ZONE_TEXT_17 "" -#define ZONE_TEXT_18 "" -#define ZONE_TEXT_19 "" -#define ZONE_TEXT_20 "" -#define ZONE_TEXT_21 "" -#define ZONE_TEXT_22 "" -#define ZONE_TEXT_23 "" -#define ZONE_TEXT_24 "" -#define ZONE_TEXT_25 "" -#define ZONE_TEXT_26 "" -#define ZONE_TEXT_27 "" -#define ZONE_TEXT_28 "" -#define ZONE_TEXT_29 "Info" -#define ZONE_TEXT_30 "Warning" -#define ZONE_TEXT_31 "Error" -#define ZONE_TEXT_103 "Api" - -#ifndef FRAMEWORKUNIFIEDLOGOPTIONS -#define FRAMEWORKUNIFIEDLOGOPTIONS (LPRINT) // LPRINT , LMSGQ, LSLOGGER -#endif - -#ifndef FRAMEWORKUNIFIEDLOGAPPZONES -#define FRAMEWORKUNIFIEDLOGAPPZONES ZONE_APP, ZONE_ERR, ZONE_WARN, ZONE_INFO, ZONE_ALSA -#endif - -extern const CHAR kAppName[]; - -#endif // BACKUP_MANAGER_SERVER_INCLUDE_BKUP_BACKUPMANAGERLOG_H_ diff --git a/video_in_hal/nsframework/backup_manager/server/include/bkup_crc32.h b/video_in_hal/nsframework/backup_manager/server/include/bkup_crc32.h deleted file mode 100755 index 132ffdc..0000000 --- a/video_in_hal/nsframework/backup_manager/server/include/bkup_crc32.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef BACKUP_MANAGER_SERVER_INCLUDE_BKUP_CRC32_H_ -#define BACKUP_MANAGER_SERVER_INCLUDE_BKUP_CRC32_H_ - -uint32_t BkupCrc32(const void *data, size_t length); - -#endif // BACKUP_MANAGER_SERVER_INCLUDE_BKUP_CRC32_H_ diff --git a/video_in_hal/nsframework/backup_manager/server/include/bkup_param.h b/video_in_hal/nsframework/backup_manager/server/include/bkup_param.h deleted file mode 100755 index 0a2dbb1..0000000 --- a/video_in_hal/nsframework/backup_manager/server/include/bkup_param.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef BACKUP_MANAGER_SERVER_INCLUDE_BKUP_PARAM_H_ -#define BACKUP_MANAGER_SERVER_INCLUDE_BKUP_PARAM_H_ - -typedef struct { - int id; - int size; - void *opt; - bool nand; - bool cache_dram; - bool backup_dram; - bool sync; - bool encrypt; - int backup_cycle; - char category_name[64]; -} bkup_query_result_t; - -int BckupParamInit(void); - -int BkupParamGet(const char *item_name, bkup_query_result_t *result); -int BkupParamGetNumid(uint32_t num_id, bkup_query_result_t *result, char *item_name, size_t item_name_size); -void *BkupParamSetOpt(const char *item_name, void *opt); - -#endif // BACKUP_MANAGER_SERVER_INCLUDE_BKUP_PARAM_H_ diff --git a/video_in_hal/nsframework/backup_manager/server/include/bkup_process.h b/video_in_hal/nsframework/backup_manager/server/include/bkup_process.h deleted file mode 100755 index 72ac7e1..0000000 --- a/video_in_hal/nsframework/backup_manager/server/include/bkup_process.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef BACKUP_MANAGER_SERVER_INCLUDE_BKUP_PROCESS_H_ -#define BACKUP_MANAGER_SERVER_INCLUDE_BKUP_PROCESS_H_ - -#include <native_service/frameworkunified_types.h> - -EFrameworkunifiedStatus BkupHandler(HANDLE h_app); - -EFrameworkunifiedStatus bkup_power_handler(HANDLE hApp); -EFrameworkunifiedStatus BkupInitHandler(HANDLE h_app); -EFrameworkunifiedStatus BkupTerminateHandler(HANDLE h_app); - -void *BkupNandThread(void *arg); -void *BkupDelayThread(void *arg); - -#endif // BACKUP_MANAGER_SERVER_INCLUDE_BKUP_PROCESS_H_ diff --git a/video_in_hal/nsframework/backup_manager/server/include/bkup_util.h b/video_in_hal/nsframework/backup_manager/server/include/bkup_util.h deleted file mode 100755 index 78494fa..0000000 --- a/video_in_hal/nsframework/backup_manager/server/include/bkup_util.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef BACKUP_MANAGER_SERVER_INCLUDE_BKUP_UTIL_H_ -#define BACKUP_MANAGER_SERVER_INCLUDE_BKUP_UTIL_H_ - -#include <sys/mman.h> -#include <ctime> -#include <cstring> - -static inline size_t BkupStrlcpy(char *dst, const char *src, size_t siz) { - size_t ret = strlen(src); - if (dst == NULL) { - return -1; - } - if (src == NULL) { - return -1; - } - if (siz) { // LCOV_EXCL_BR_LINE 6:double check - size_t len = (ret >= siz) ? siz - 1 : ret; // LCOV_EXCL_BR_LINE 11:unexpected branch - memcpy(dst, src, len); - dst[len] = '\0'; - } - return ret; -} - -static inline char *BkupAnonMmap(size_t size) { - char *map = static_cast<char *>(mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0)); - return map; -} - -static inline uint64_t BkupTimerReal(void) { - struct timespec ts; - if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts) != -1) { // LCOV_EXCL_BR_LINE 5:clock_gettime's error case. - return (uint64_t)ts.tv_sec * 1000000000 + ts.tv_nsec; - } - return -1; -} - -#endif // BACKUP_MANAGER_SERVER_INCLUDE_BKUP_UTIL_H_ |