Programming Guide


Gets the active LDB loaded before the one specified

int sm_ldb_get_next_active(int prev_handle);

The handle of an active LDB.



sm_ldb_get_next_active takes the handle of an active LDB and returns with the handle of the LDB that was most recently loaded before it and is also active. Use this function together with sm_ldb_get_active to iterate over all active LDBs in order of most to least recently loaded. For example:

int h;
for (
h = sm_ldb_get_active();
h != -1;
h = sm_ldb_get_next_active(h) )
/* Do stuff with h */

Note: The order in which LDBs are activated can be different from the order in which they were loaded.

See Also