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