Programming Guide |
Gets the handle of the most recently loaded inactive LDB
int sm_lbd_get_inactive(void);
- 0 Success: The integer handle of the most recently inactivated LDB.
sm_ldb_get_inactive
searches the stack of loaded LDBs and returns the integer handle of the topmost LDB that is also inactive. Use this function together with sm_ldb_get_next_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 */
}