⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 apphint.c

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 C
字号:
/*!****************************************************************************
@File			apphint.c

@Title			Apphint functions

@Author			Imagination Technologies

@date   		10/12/2003
 
@Copyright     	Copyright 2003-2004 by Imagination Technologies Limited.
                All rights reserved. No part of this software, either
                material or conceptual may be copied or distributed,
                transmitted, transcribed, stored in a retrieval system
                or translated into any human or computer language in any
                form by any means, electronic, mechanical, manual or
                other-wise, or disclosed to third parties without the
                express written permission of Imagination Technologies
                Limited, Unit 8, HomePark Industrial Estate,
                King's Langley, Hertfordshire, WD4 8LZ, U.K.

@Platform		generic

@Description	Provides support for reading application specific hints.

@DoxygenVer		

******************************************************************************/

/******************************************************************************
Modifications :-

$Log: apphint.c $
*****************************************************************************/

#include "img_defs.h"
#include "services.h"

/* this function is OS dependent and will be implemented in services_um\env\[OS] */
IMG_BOOL FindAppHint(IMG_MODULE_ID eModuleID, IMG_CHAR *pszAppName, IMG_CHAR *pszHintName, IMG_VOID *pReturn, IMG_DATA_TYPE eDataType);

/*!
******************************************************************************

 @Function	PVRSRVGetAppHint
 
 @Description 
 Returns and application specific hint
 
 @Input    eModuleID : 

 @Input    pszAppName : 

 @Input    pszHintName : 

 @Input    pDefault : 

 @Output   pReturn :

 @Return   PVRSRV_ERROR  : 

******************************************************************************/
IMG_EXPORT PVRSRV_ERROR PVRSRVGetAppHint (IMG_MODULE_ID eModuleID, IMG_CHAR *pszAppName, IMG_CHAR *pszHintName, IMG_VOID *pReturn, IMG_DATA_TYPE eDataType, IMG_VOID *pDefault)
{
	if(FindAppHint(eModuleID, pszAppName, pszHintName, pReturn, eDataType))
	{
		/* we have found the app hint we were looking for */
	}
	else
	{
		switch(eDataType)
		{
		case IMG_UINT_TYPE:
			*(IMG_UINT32*)pReturn = *(IMG_UINT32*)pDefault;
			break;
		case IMG_INT_TYPE:
		default:
			*(IMG_INT32*)pReturn = *(IMG_INT32*)pDefault;
			break;
		}
	}
	return PVRSRV_OK;
}

⌨️ 快捷键说明

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