📄 configuration.h
字号:
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*******************************************************************************
* Filename:
* ---------
* configuration.h
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
*
*
* Author:
* -------
*
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
/*
* @(#)configuration.h 1.5 02/07/24 @(#)
*
* Copyright (c) 2001 Sun Microsystems, Inc. All rights reserved.
* PROPRIETARY/CONFIDENTIAL
* Use is subject to license terms.
*/
/*=========================================================================
* SYSTEM: MIDP
* SUBSYSTEM: Configuration property file support.
* FILE: configprop.h
* OVERVIEW: Function prototypes for accessing runtime system properties
*
* OVERVIEW: This file defines the function that allows a native
* handler of configuration properties from the environment variables,
* command line arguments and preconfigured default property files
* to be unified in a common set of interfaces.
*
* USAGE: Implementation proerties in general are not visible to the
* to Java application code. Properties are accessible
* to native code as well as Java implementation code.
*
* AUTHOR: Gary Adams
*=======================================================================*/
/*=========================================================================
* Function prototypes for the configprop of native resources
*=======================================================================*/
#ifndef CONFIGPROP_H
#define CONFIGPROP_H
typedef struct _configproperty {
struct _configproperty *next ;
char *key;
char *value;
} Property ;
#if COMPILER_SUPPORTS_DIR
#ifdef UNIX
#define IMPL_PROPERTY_FILE "lib/internal.config"
#define APPL_PROPERTY_FILE "lib/system.config"
#else /* WINDOWS */
#define IMPL_PROPERTY_FILE "lib\\internal.config"
#define APPL_PROPERTY_FILE "lib\\system.config"
#endif
#else
#define IMPL_PROPERTY_FILE "internal.config"
#define APPL_PROPERTY_FILE "system.config"
#endif /* end of #if COMPILER_SUPPORTS_DIR */
/* Initialize the configuration subsystem */
#if COMPILER_SUPPORTS_DIR
extern int initializeConfig(char *);
#else
extern int initializeConfig(void);
#endif /* end of #if COMPILER_SUPPORTS_DIR */
extern void finalizeConfig(void);
/* Get and Set system specific implementation properties.(protected) */
extern char * getInternalPropDefault (char*, char* );
extern char * getInternalProp (char* );
extern void setInternalProp (char*, char* );
/* Get and Set application visible properties.(public) */
extern char * getSystemProp (char* );
extern void setSystemProp (char*, char* );
#endif /* CONFIGPROP_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -