1 | #include <config.h> |
---|---|
2 | #include "lst.h" |
3 | |
4 | void *lstNext( HLST hLst ) |
5 | { |
6 | if ( !hLst ) |
7 | return NULL; |
8 | |
9 | if ( !hLst->hCurrent ) |
10 | return NULL; |
11 | |
12 | hLst->hCurrent = hLst->hCurrent->pNext; |
13 | |
14 | if ( hLst->hCurrent ) |
15 | { |
16 | if ( !_lstVisible( hLst->hCurrent ) ) |
17 | hLst->hCurrent = _lstNextValidItem( hLst, hLst->hCurrent ); |
18 | } |
19 | |
20 | return hLst->hCurrent; |
21 | } |
22 | |
23 | |
24 |