![]() | Programming Guide | ![]() |
Gets the inactive LDB loaded before the one specified
int sm_ldb_get_next_inactive(int prev_handle);
prev_handle- The handle of an inactive LDB.
0 Success: The handle of an inactivated LDB.
sm_ldb_get_next_inactivetakes the handle of an inactive LDB and returns with the handle of the LDB most recently loaded before it that is also inactive. Use this function together with sm_ldb_get_inactive to iterate over all inactive LDBs in order of most to least recently loaded. For example:int h;
for (
h = sm_ldb_get_inactive();
h != -1;
h = sm_ldb_get_next_inactive(h) )
{
/* Do stuff with h */
}