Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » MobiLink - Server-Initiated Synchronization » MobiLink Listener SDK for Palm » Message processing interface

PalmLsnProcess function Next Page

PalmLsnCheckConfigDB function


Reports errors in a Palm Listener configuration database.

Prototype

palm_lsn_ret PalmLsnCheckConfigDB(
Char const * cfg,
UInt16 * const rec
)

Parameters
Return Value

Return codes defined in the palm_lsn_ret enumeration.

See palm_lsn_ret enumeration.

Remarks

You can use this function to detect errors opening a configuration database or reading its records.

See also
Example

The following example uses PalmLsnCheckConfigDB to detect problematic or malformed records in a configuration database.

Err ret;
UInt16 badRec;
Char configDb[ dmDBNameLength ];

// Get configuration database name
PalmLsnGetConfigFileName( configDb );

// check for errors in the configuration database
ret = PalmLsnCheckConfigDB(configDb, &badRec);
if(ret!=errNone)
{
  // handle error
}