mconfig.h

来自「彩信MMS的全部代码」· C头文件 代码 · 共 109 行

H
109
字号
/*
 * Copyright (C) Obigo AB, 2002-2005.
 * All rights reserved.
 *
 * This software is covered by the license agreement between
 * the end user and Obigo AB, and may be 
 * used and copied only in accordance with the terms of the 
 * said agreement.
 *
 * Obigo AB assumes no responsibility or 
 * liability for any errors or inaccuracies in this software, 
 * or any consequential, incidental or indirect damage arising
 * out of the use of the software.
 *
 */
















#ifndef _MCONFIG_H
#define _MCONFIG_H



#define MMS_INVALID_CFG_VARIABLE    0xfffffff0



#define IS_HOST_SEPARATOR(x) ((x) == '|')


#define IS_HOST_LETTER(x) ( \
    ((x) >= '0' && (x) <= '9') || \
    ((x) >= 'a' && (x) <= 'z') || \
    ((x) >= 'A' && (x) <= 'Z') || \
    (x) == '.' || (x) == '-')


#define IS_PORT(x) ( \
    ((x) >= '0' && (x) <= '9') || \
    (x) == ':')




typedef enum
{
    





    MMS_SIG_CORE_GET_CONFIG_INT = M_FSM_CORE_CONFIG * MMS_MAX_SIG_PER_FSM,

    





    MMS_SIG_CORE_GET_CONFIG_STR,

    





    MMS_SIG_CORE_SET_CONFIG_INT,

    





    MMS_SIG_CORE_SET_CONFIG_STR
} MmsCoreConfigSignalId;










void cfgInit(void);
void cfgTerminate(void);
UINT32 cfgGetInt(MmsConfigInt key);
char *cfgGetStr(MmsConfigStr key);

#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?