| 1 | #include <config.h> |
|---|---|
| 2 | #include "lst.h" |
| 3 | /* |
| 4 | * |
| 5 | */ |
| 6 | void *lstGet( HLST hLst ) |
| 7 | { |
| 8 | HLSTITEM hItem; |
| 9 | |
| 10 | if ( !hLst ) |
| 11 | return NULL; |
| 12 | |
| 13 | if ( !hLst->hCurrent ) |
| 14 | return NULL; |
| 15 | |
| 16 | if ( hLst->hLstBase ) |
| 17 | hItem = (HLSTITEM)hLst->hCurrent->pData; /* cursor pData points directly to the root Item (not the roots pData) */ |
| 18 | else /* a cursor may be based upon another cursor but pData is always ptr to root item */ |
| 19 | hItem = hLst->hCurrent; |
| 20 | |
| 21 | |
| 22 | return hItem->pData; |
| 23 | } |
| 24 | |
| 25 | |
| 26 | |
| 27 |