JULEA
Data Structures | Typedefs | Functions
Directory Iterator

Data Structures

struct  JDirIterator
 

Typedefs

typedef struct JDirIterator JDirIterator
 

Functions

G_END_DECLS G_BEGIN_DECLS JDirIteratorj_dir_iterator_new (gchar const *path)
 
void j_dir_iterator_free (JDirIterator *iterator)
 
gboolean j_dir_iterator_next (JDirIterator *iterator)
 
gchar const * j_dir_iterator_get (JDirIterator *iterator)
 

Detailed Description

Typedef Documentation

◆ JDirIterator

typedef struct JDirIterator JDirIterator

Function Documentation

◆ j_dir_iterator_free()

void j_dir_iterator_free ( JDirIterator iterator)

Frees the memory allocated by a directory iterator.

Parameters
iteratorA directory iterator.

◆ j_dir_iterator_get()

gchar const * j_dir_iterator_get ( JDirIterator iterator)

Returns the current file.

Parameters
iteratorA directory iterator.
Returns
A list element.

◆ j_dir_iterator_new()

JDirIterator * j_dir_iterator_new ( gchar const *  path)

Creates a new directory iterator.

Parameters
pathA directory path.
Returns
A new directory iterator.

◆ j_dir_iterator_next()

gboolean j_dir_iterator_next ( JDirIterator iterator)

Checks whether another file is available.

Parameters
iteratorA directory iterator.
Returns
TRUE on success, FALSE if the end of the iterator is reached.