////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
// All rights reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file  chistaticdata.h
/// @brief Static and constant data tables that may be shared in CamX and CHI as well.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef CHISTATICDATA_H
#define CHISTATICDATA_H

#include "camxcdktypes.h"

#if defined (_WIN32)

#ifndef CONFIG_DIRS_DEFINED
#define CONFIG_DIRS_DEFINED

/// File system path separator character
static const CHAR PathSeparator[]           = "\\";
static const CHAR SharedLibraryExtension[]  = "dll";
static const CHAR VendorLibPath[]           = ".";
static const CHAR CameraComponentLibPath[]  = ".";
static const CHAR FileDumpPath[]            = ".";
#endif // CONFIG_DIRS_DEFINED

#else // _WIN32

/// File system path separator character
static const CHAR PathSeparator[] = "/";
static const CHAR SharedLibraryExtension[] = "so";

#if defined (LE_CAMERA)
static const CHAR VendorLibPath[]           = "/usr/lib/";
static const CHAR CameraComponentLibPath[]  = "/usr/lib/camera/components";
#else // LE_CAMERA
#if defined(_LP64)
static const CHAR VendorLibPath[]           = "/vendor/lib64";
static const CHAR SystemLibPath[]           = "/system/lib64";
static const CHAR CameraComponentLibPath[]  = "/vendor/lib64/camera/components";
#else
static const CHAR VendorLibPath[]           = "/vendor/lib";
static const CHAR SystemLibPath[]           = "/system/lib";
static const CHAR CameraComponentLibPath[]  = "/vendor/lib/camera/components";
#endif // defined(_LP64)
#endif // LE_CAMERA

/// The directory from which to read configuration files
#ifndef CONFIG_DIRS_DEFINED
#define CONFIG_DIRS_DEFINED
#if defined (CAMX_ANDROID_API) && (CAMX_ANDROID_API >= 28) // NOWHINE PR002 <- Win32 definition
static const CHAR   ConfigFileDirectory[]   = "/data/vendor/camera";

#if (!defined(LE_CAMERA))
    static const CHAR   FileDumpPath[]          = "/data/vendor/camera";
#else
    static const CHAR   FileDumpPath[]          = "/var/cache/camera/";
#endif


static CHAR         CameraKPIPath[]         = "/data/vendor/camera/camera_kpi_";

#else
static const CHAR   ConfigFileDirectory[]   = "/data/misc/camera";
static const CHAR   FileDumpPath[]          = "/data/misc/camera";
static CHAR         CameraKPIPath[]         = "/data/misc/camera/camera_kpi_";

#endif // Android-P or later
#endif // CONFIG_DIRS_DEFINED

#endif // (_WIN32)

#endif // CHISTATICDATA_H
