The MobiLink Listener C API for Palm devices is a compact programming interface that contains message processing and device dependent methods, which can be used to create Listeners for new Palm devices, and wireless network adapters.
The following is a list of files required to run the API, and the Palm device sample implementations. All directories are relative to install-dir.
File name or location | Description |
---|---|
SDK\Listener\Palm\68k\cw\lib\PalmLsn.lib |
Runtime library, which includes a message handling routine, Listener controls, and a handler editor. |
SDK\Listener\Palm\68k\cw\rsc |
Contains UI resources. |
SDK\Listener\Palm\src\PalmLsn.h |
Runtime library header and the API. |
SDK\Listener\Palm\src\Treo650.c |
Treo 650 implementation. |
The Listener API uses the a_palm_msg structure to represent Listener messages. The following methods are used to allocate and process a_palm_msg instances:
Method | Description |
---|---|
Returns a new a_palm_msg instance. |
|
Initializes the message field values of an a_palm_msg instance. |
|
Initializes the sender field of an a_palm_msg instance. |
|
Initializes the time field of an a_palm_msg instance. |
|
Frees message memory resources. |
|
Processes a message according to the records in a configuration database. |
The following methods provide identification, registration, and event handling functionality:
Method | Description |
---|---|
Reports errors in a Listener configuration database. |
|
Returns a string containing the name of your Listener configuration database. |
|
Handles application events. |
|
Provides custom actions when your Listener application starts. |
|
Provides custom actions when your Listener application exits from the event loop. |
|
Responds to launch codes which may be device dependent. |
|
Returns the company or manufacturer ID of a device. |
|
Returns the target device ID. |
LsnMain method
palm_lsn_ret enumeration
PalmLsnAllocate method
PalmLsnCheckConfigDB method
PalmLsnDupMessage method
PalmLsnDupSender method
PalmLsnDupTime method
PalmLsnFree method
PalmLsnGetConfigFileName method
PalmLsnNormalHandleEvent method
PalmLsnNormalStart method
PalmLsnNormalStop method
PalmLsnProcess method
PalmLsnSpecialLaunch method
PalmLsnTargetCompanyID method
PalmLsnTargetDeviceID method
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |