|
API Guide Home (Online version only) |
![]() |
00001 /** 00002 * @file palmOneSystemCommon.h 00003 * @brief This is the common public header for palmOne system 00004 * definitions. 00005 */ 00006 00007 /* 00008 * \author Debbie Chyi 00009 * $Id:$ 00010 * 00011 ****************************************************************/ 00012 00013 00014 #ifndef __PALMONE_SYSTEM_COMMON_H__ 00015 #define __PALMONE_SYSTEM_COMMON_H__ 00016 00017 00018 // Macro that builds a library version value from the passed-in major 00019 // and minor values. Major values are incremented when a library's 00020 // API changes. When a major value is incremented, the minor value 00021 // is reset to 0. Minor values are incremented when a library is 00022 // released with code changes but the API itself has not changed 00023 // from the previous release. 00024 #define sysMakeLibAPIVersion(major, minor) \ 00025 ( \ 00026 (((UInt32)((UInt16)(major) & 0x0FFFF)) << 16) | \ 00027 (((UInt32)((UInt16)(minor) & 0x0FFFF))) \ 00028 ) 00029 00030 00031 // Macros for parsing the library version number. Comments above 00032 // sysMakeLibVersion describe the difference between and major and 00033 // minor version numbers. 00034 #define sysGetLibAPIVersionMajor(libVer) (((UInt16)((libVer) >> 16)) & 0x0FFFF) 00035 #define sysGetLibAPIVersionMinor(libVer) (((UInt16)(libVer)) & 0x0FFFF) 00036 00037 #endif // __PALMONE_SYSTEM_COMMON_H__
| Top | Palm Developer Network © 2004-2008, Palm, Inc. All rights reserved. Generated on Fri Jun 13 10:06:54 2008 for Palm API Guide |