#include <libcomprex/directory.h>
#include <libcomprex/fsnode.h>
Go to the source code of this file.
Data Structures | |
struct | _CxFsIterator |
An iterator interface for iterating through files or directories in an archive. More... | |
Structure (De)allocation Functions | |
CxFsIterator * | cxNewFsIterator (CxArchive *archive, CxFsIteratorType type) |
Creates a filesystem iterator. | |
void | cxDestroyFsIterator (CxFsIterator *iterator) |
Destroys a filesystem iterator. | |
Iteration Functions | |
CxFsNode * | cxGetFsIterFirst (CxFsIterator *iterator) |
Returns the first item. | |
CxFsNode * | cxGetFsIterNext (CxFsIterator *iterator) |
Returns the next item. | |
CxFsNode * | cxGetFsIterPrev (CxFsIterator *iterator) |
Returns the previous item. | |
Typedefs | |
typedef _CxFsIterator | CxFsIterator |
Filesystem iterator. | |
Enumerations | |
enum | CxFsIteratorType { CX_FSITER_FILES = 0, CX_FSITER_DIRS, CX_FSITER_FILES_DIRS } |
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Filesystem iterator.
|
|
|
|
Destroys a filesystem iterator. This should be called when done with an iterator.
|
|
Returns the first item.
|
|
Returns the next item. If this hasn't been called previously, it will return the first item.
|
|
Returns the previous item. If cxGetIterNext() hasn't been called yet, this will return NULL.
|
|
Creates a filesystem iterator. This will normally only be used within libpackman.
|