The Following User Says Thank You to Airtux For This Useful Post: | ||
|
2010-10-25
, 05:00
|
|
Posts: 741 |
Thanked: 900 times |
Joined on Nov 2007
@ Auckland NZ
|
#102
|
@maluka looks here: http://talk.maemo.org/showpost.php?p...1&postcount=77
|
2010-10-25
, 05:07
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#103
|
--- PDL.h 2010-10-25 07:46:35.980774034 +0300 +++ PDL.h-- 2010-10-25 07:51:22.065576828 +0300 @@ -49,14 +49,25 @@ double aspectRatio; } PDL_ScreenMetrics; +typedef struct { + int majorVersion; + int minorVersion; + int revision; + const char *versionStr; +} PDL_OSVersion; + PDL_Err PDL_BannerMessagesEnable(PDL_bool enable); PDL_Err PDL_CustomPauseUiEnable(PDL_bool enable); PDL_Err PDL_GetCallingPath(char *buffer, int bufferLen); PDL_Err PDL_GetDeviceName(char *buffer, int bufferLen); +const char * PDL_GetError(); PDL_Err PDL_GetLanguage(char *buffer, int bufferLen); PDL_Err PDL_GetNetInfo(const char *interfaceName, PDL_NetInfo * interfaceInfo); PDL_Err PDL_GetScreenMetrics(PDL_ScreenMetrics* metrics); PDL_Err PDL_GetUniqueID(char *buffer, int bufferLen); +PDL_Err PDL_GetOSVersion(PDL_OSVersion *version); +const char * PDL_GetHardware(); +int PDL_isAppLicensedForDevice(const char *appid); PDL_Err PDL_LaunchBrowser(const char* url); PDL_Err PDL_NotifyMusicPlaying(PDL_bool musicPlaying); PDL_Err PDL_ScreenTimeoutEnable(PDL_bool enable);
--- pdl.c 2010-10-25 07:46:35.980774034 +0300 +++ pdl.c-- 2010-10-25 07:56:01.502404858 +0300 @@ -217,6 +217,12 @@ return PDL_NOERROR; } +const char * PDL_GetError() +{ + // Not implemented + return "Something happened!"; +} + PDL_Err PDL_GetLanguage(char *buffer, int bufferLen) { if (!buffer || bufferLen <= 0) { @@ -242,6 +248,16 @@ return PDL_INVALIDINPUT; } +const char * PDL_GetHardware() +{ + return "pre"; +} + +int PDL_isAppLicensedForDevice(const char *appid) +{ + return 1; +} + PDL_Err PDLNet_Get_Info(const char *interfaceName, PDL_NetInfo * interfaceInfo) { return PDL_GetNetInfo(interfaceName, interfaceInfo); @@ -249,8 +265,21 @@ PDL_Err PDL_GetScreenMetrics(PDL_ScreenMetrics* metrics) { - TRACE("Application asks for screen metrics; what to say here?"); - return PDL_EOTHER; + metrics->horizontalPixels = 480; + metrics->verticalPixels = 800; + metrics->horizontalDPI = 213; + metrics->verticalDPI = 183; + metrics->aspectRatio = 1.164; + return PDL_NOERROR; +} + +PDL_Err PDL_GetOSVersion(PDL_OSVersion *version) +{ + version->majorVersion = 1; + version->minorVersion = 4; + version->revision = 5; + version->versionStr = "Palm WebOS 1.4.5.1"; + return PDL_NOERROR; } PDL_Err PDL_GetUniqueID(char *buffer, int bufferLen)
|
2010-10-25
, 05:31
|
Posts: 104 |
Thanked: 46 times |
Joined on Sep 2010
@ New York City
|
#104
|
|
2010-10-25
, 07:01
|
Posts: 2,014 |
Thanked: 1,581 times |
Joined on Sep 2009
|
#105
|
|
2010-10-25
, 07:35
|
Posts: 619 |
Thanked: 691 times |
Joined on Feb 2010
|
#106
|
|
2010-10-25
, 08:20
|
Posts: 32 |
Thanked: 18 times |
Joined on Apr 2010
|
#107
|
|
2010-10-25
, 08:36
|
|
Posts: 333 |
Thanked: 153 times |
Joined on Feb 2010
@ blah blah
|
#108
|
|
2010-10-25
, 08:45
|
Posts: 194 |
Thanked: 87 times |
Joined on Jun 2010
|
#109
|
|
2010-10-25
, 09:47
|
Posts: 188 |
Thanked: 53 times |
Joined on May 2010
|
#110
|
N900, Maemo 5 - NITDroid/N810 Maemo 4 -- French community: http://forum.maemofrance.fr