Core Palm OS APIs


Detailed Description

Fundamental system services, including memory, data, threads, and events.


Files

file  PalmTypes.h
 Elementary Palm OS data types. Included by all Palm OS components.

Modules

 Error Codes
 How error codes are constructed, enumeration of all error classes in the system, and some pre-defined common error codes.
 CoreDataManagerProvider
 Implementation of Data Model for Data Manager schema databases.
 Support Kit
 Foundational classes of the system: utilities, types, containers, the Binder, the data model, etc.
 Threads
 Basic system support for working with threads.

Classes

struct  uuid_t

Defines

#define _FLB_ALL32(x)   *((uint32_t *) &x)
#define _FLB_FIRST32(x)   *((uint32_t *) &x)
#define _FLB_HI32(x)   *((uint32_t *) &x + 1)
#define _FLB_LO32(x)   *((uint32_t *) &x)
#define _FLB_SECOND32(x)   *((uint32_t *) &x + 1)
#define _STACK_ALIGN(x)
#define B_MICROSECONDS_TO_NANOSECONDS(us)   B_US2NS(us)
#define B_MILLISECONDS_TO_NANOSECONDS(ms)   B_MS2NS(ms)
#define B_MS2NS(ms)   ((nsecs_t)(ms) * 1000000)
#define B_NANOSECONDS_TO_MICROSECONDS(ns)   B_NS2US(ns)
#define B_NANOSECONDS_TO_MILLISECONDS(ns)   B_NS2MS(ns)
#define B_NANOSECONDS_TO_SECONDS(ns)   B_NS2S(ns)
#define B_NS2MS(ns)   ((int64_t)(ns) / 1000000)
#define B_NS2S(ns)   ((int64_t)(ns) / 1000000000)
#define B_NS2US(ns)   ((int64_t)(ns) / 1000)
#define B_ONE_MICROSECOND   (B_ONE_NANOSECOND*1000)
#define B_ONE_MILLISECOND   (B_ONE_MICROSECOND*1000)
#define B_ONE_NANOSECOND   ((nsecs_t)1)
#define B_ONE_SECOND   (B_ONE_MILLISECOND*1000)
#define B_S2NS(s)   ((nsecs_t)(s) * 1000000000)
#define B_SECONDS_TO_NANOSECONDS(s)   B_S2NS(s)
#define B_US2NS(us)   ((nsecs_t)(us) * 1000)
#define BUILD_TYPE_DEBUG   300
#define BUILD_TYPE_RELEASE   100
#define BUS_ALIGN_16   16
#define BUS_ALIGN_32   32
#define CPU_68K   0
#define CPU_ARM   3
#define CPU_ENDIAN_BIG   0
#define CPU_ENDIAN_LITTLE   1
#define CPU_PPC   2
#define CPU_x86   1
#define DO_NOT_USE_DEFAULT_DATA   0
#define EndianSwap16(n)
#define EndianSwap32(n)
#define ErrConvertFrom68k(x)   ( (((status_t)(x))&0xFFFF) | 0x80000000 )
#define ErrConvertTo68k(x)   ((uint16_t)(((uint32_t)(x))&0xFFFF))
#define FALSE   (0)
#define LSB_TO_MSB   1
#define MSB_TO_LSB   0
#define NULL   0
#define PALMOS_SDK_VERSION   0x610
#define RsrcEndianSwap16(x)   (x)
#define RsrcEndianSwap32(x)   (x)
#define TARGET_HOST_BEOS   3
#define TARGET_HOST_LINUX   5
#define TARGET_HOST_MACOS   4
#define TARGET_HOST_PALMOS   1
#define TARGET_HOST_WIN32   2
#define TARGET_PLATFORM_DEVICE_68K   0x00000001
#define TARGET_PLATFORM_DEVICE_ARM   0x00000002
#define TARGET_PLATFORM_PALMSIM_LINUX   0x00010002
#define TARGET_PLATFORM_PALMSIM_MACOS   0x00010003
#define TARGET_PLATFORM_PALMSIM_WIN32   0x00010001
#define TRACE_OUTPUT_OFF   0
#define TRACE_OUTPUT_ON   1
#define TRUE   (1)
#define USE_DEFAULT_DATA   1

Typedefs

typedef unsigned char Boolean
typedef float coord
typedef int16_t Coord
typedef uint16_t Enum16
typedef uint8_t Enum8
typedef float fcoord_t
typedef int FDCELL
typedef _opaque * MemHandle
typedef void * MemPtr
typedef int64_t nsecs_t
typedef void * PCELL
typedef uint32_t perform_code
typedef int32_t pl_t
typedef int32_t(* ProcPtr )()
typedef int16_t SignedEnum16
typedef int8_t SignedEnum8
typedef int32_t status_t
typedef uint32_t SysHandle
typedef uint32_t type_code
typedef uuid_t uuid_t
typedef uint32_t VAddr
typedef uint16_t wchar16_t
typedef uint32_t wchar32_t


Define Documentation

#define _FLB_ALL32  )     *((uint32_t *) &x)
 

#define _FLB_FIRST32  )     *((uint32_t *) &x)
 

#define _FLB_HI32  )     *((uint32_t *) &x + 1)
 

#define _FLB_LO32  )     *((uint32_t *) &x)
 

#define _FLB_SECOND32  )     *((uint32_t *) &x + 1)
 

#define _STACK_ALIGN  ) 
 

#define B_MICROSECONDS_TO_NANOSECONDS us   )     B_US2NS(us)
 

#define B_MILLISECONDS_TO_NANOSECONDS ms   )     B_MS2NS(ms)
 

#define B_MS2NS ms   )     ((nsecs_t)(ms) * 1000000)
 

#define B_NANOSECONDS_TO_MICROSECONDS ns   )     B_NS2US(ns)
 

#define B_NANOSECONDS_TO_MILLISECONDS ns   )     B_NS2MS(ns)
 

#define B_NANOSECONDS_TO_SECONDS ns   )     B_NS2S(ns)
 

#define B_NS2MS ns   )     ((int64_t)(ns) / 1000000)
 

#define B_NS2S ns   )     ((int64_t)(ns) / 1000000000)
 

#define B_NS2US ns   )     ((int64_t)(ns) / 1000)
 

#define B_ONE_MICROSECOND   (B_ONE_NANOSECOND*1000)
 

#define B_ONE_MILLISECOND   (B_ONE_MICROSECOND*1000)
 

#define B_ONE_NANOSECOND   ((nsecs_t)1)
 

#define B_ONE_SECOND   (B_ONE_MILLISECOND*1000)
 

#define B_S2NS  )     ((nsecs_t)(s) * 1000000000)
 

#define B_SECONDS_TO_NANOSECONDS  )     B_S2NS(s)
 

#define B_US2NS us   )     ((nsecs_t)(us) * 1000)
 

#define BUILD_TYPE_DEBUG   300
 

#define BUILD_TYPE_RELEASE   100
 

#define BUS_ALIGN_16   16
 

#define BUS_ALIGN_32   32
 

#define CPU_68K   0
 

#define CPU_ARM   3
 

#define CPU_ENDIAN_BIG   0
 

#define CPU_ENDIAN_LITTLE   1
 

#define CPU_PPC   2
 

#define CPU_x86   1
 

#define DO_NOT_USE_DEFAULT_DATA   0
 

#define EndianSwap16  ) 
 

Value:

(((((uint16_t) n) << 8) & 0xFF00) | \
                         ((((uint16_t) n) >> 8) & 0x00FF))

#define EndianSwap32  ) 
 

Value:

(((((uint32_t) n) << 24) & 0xFF000000) |    \
                         ((((uint32_t) n) <<  8) & 0x00FF0000) |    \
                         ((((uint32_t) n) >>  8) & 0x0000FF00) |    \
                         ((((uint32_t) n) >> 24) & 0x000000FF))

#define ErrConvertFrom68k  )     ( (((status_t)(x))&0xFFFF) | 0x80000000 )
 

#define ErrConvertTo68k  )     ((uint16_t)(((uint32_t)(x))&0xFFFF))
 

#define FALSE   (0)
 

#define LSB_TO_MSB   1
 

#define MSB_TO_LSB   0
 

#define NULL   0
 

#define PALMOS_SDK_VERSION   0x610
 

#define RsrcEndianSwap16  )     (x)
 

#define RsrcEndianSwap32  )     (x)
 

#define TARGET_HOST_BEOS   3
 

#define TARGET_HOST_LINUX   5
 

#define TARGET_HOST_MACOS   4
 

#define TARGET_HOST_PALMOS   1
 

#define TARGET_HOST_WIN32   2
 

#define TARGET_PLATFORM_DEVICE_68K   0x00000001
 

#define TARGET_PLATFORM_DEVICE_ARM   0x00000002
 

#define TARGET_PLATFORM_PALMSIM_LINUX   0x00010002
 

#define TARGET_PLATFORM_PALMSIM_MACOS   0x00010003
 

#define TARGET_PLATFORM_PALMSIM_WIN32   0x00010001
 

#define TRACE_OUTPUT_OFF   0
 

#define TRACE_OUTPUT_ON   1
 

#define TRUE   (1)
 

#define USE_DEFAULT_DATA   1
 


Typedef Documentation

typedef unsigned char Boolean
 

typedef float coord
 

typedef int16_t Coord
 

typedef uint16_t Enum16
 

typedef uint8_t Enum8
 

typedef float fcoord_t
 

typedef int FDCELL
 

typedef struct _opaque* MemHandle
 

typedef void* MemPtr
 

typedef int64_t nsecs_t
 

typedef void* PCELL
 

typedef uint32_t perform_code
 

typedef int32_t pl_t
 

typedef int32_t(* ProcPtr)()
 

typedef int16_t SignedEnum16
 

typedef int8_t SignedEnum8
 

typedef int32_t status_t
 

typedef uint32_t SysHandle
 

typedef uint32_t type_code
 

typedef struct uuid_t uuid_t
 

typedef uint32_t VAddr
 

typedef uint16_t wchar16_t
 

typedef uint32_t wchar32_t