Programming Guide



sm_ldb_*state_get

Gets the current state of the LDB

int sm_ldb_state_get(char *ldbname, int state_type);
int sm_ldb_h_state_get(int ldbhandle, int state_type);

ldbname
The name of the LDB whose state you want to get.

ldbhandle
The integer handle of the LDB whose state you want to get.

state_type
Specifies the state to get with one of these constants:

LDB_ACTIVE
A Yes/No flag that specifies whether the LDB is active. Only active LDBs participate in LDB write-through.

LDB_READ_ONLY
A Yes/No flag that specifies whether the LDB is read-only. Screens can read from this LDB on screen entry but cannot modify it on exit; consequently, a read-only LDB cannot be used to transfer values from one screen to another.

Returns

Description

sm_ldb_state_get lets you determine whether a loaded LDB is active or whether it is read-only. Call this function before changing an LDB's state through sm_ldb_state_set.