xos_inifiles.h.svn-base

来自「brew头文件分析」· SVN-BASE 代码 · 共 74 行

SVN-BASE
74
字号
//**************************************************************
//Copyright (C), 2008-2008, AnyLook Co., Ltd.
//File name:    xOS_IniFiles.h
//Author:       AnyLook
//Version:      1.0
//Date:        2008/07/31
//Description:
//    xOS Include file
//Others: 
//Function List: 
//<Name>        <desc>
//Simple        
//History: 
//<author>      <time>      <version >  <desc>
// AnyLook		 2008/07/31       1.0       build this moudle  
//**************************************************************


#ifndef _xOS_IniFiles_H
#define _xOS_IniFiles_H




#ifdef __cplusplus
extern "C" {
#endif

#include "xOS_IniFiles_VTBL.h"



static INLINE int xOS_IniFiles_read_int(const char *section, const char *key,
	                 					int default_value, const char *file)
{
	if (GETINIFILES(g_pxOSList))
	{
		return	GETINIFILES(g_pxOSList)->read_int(section, key, default_value, file);
	}
	return 0;		
}


static INLINE int xOS_IniFiles_read_string(const char *section, const char *key,char *value, 
                        	   			   int size,const char *default_value, const char *file)
{
	if (GETINIFILES(g_pxOSList))
	{
		return	GETINIFILES(g_pxOSList)->read_string(section, key, value, size, default_value, file);
	}
		return 0;
}



static INLINE int xOS_IniFiles_write_string(const char *section, const char *key,
						 					const char *value, const char *file)
{
	if (GETINIFILES(g_pxOSList))
	{
		return	GETINIFILES(g_pxOSList)->write_string(section, key, value, file);
	}
	return 0;
		
}



#ifdef __cplusplus
}
#endif

#endif //_xOS_IniFiles_H

⌨️ 快捷键说明

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