An opaque structure representing an opened directory.
Closes the directory immediately and decrements the reference count.
Retrieves the name of another entry in the directory, or null. The order of entries returned from this function is not defined, and may vary by file system or other operating-system dependent factors.
Increment the reference count of dir.
dir
Resets the given directory. The next call to g_dir_read_name() will return the first entry again.
Decrements the reference count of dir.