GPAK  1.0.0
A general-purpose archive library
Functions
filesystem_tree.h File Reference
#include "gpak_export.h"
#include "gpak_data.h"
Include dependency graph for filesystem_tree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

GPAK_API filesystem_tree_node_tfilesystem_tree_create ()
 
GPAK_API void filesystem_tree_add_directory (filesystem_tree_node_t *_root, const char *_path)
 
GPAK_API void filesystem_tree_add_file (filesystem_tree_node_t *_root, const char *_path, const char *_file_path, pak_entry_t _entry)
 
GPAK_API filesystem_tree_node_tfilesystem_tree_find_directory (filesystem_tree_node_t *_root, const char *_path)
 
GPAK_API filesystem_tree_file_tfilesystem_tree_find_file (filesystem_tree_node_t *_root, const char *_path)
 
GPAK_API char * filesystem_tree_directory_path (filesystem_tree_node_t *_node)
 
GPAK_API char * filesystem_tree_file_path (filesystem_tree_node_t *_node, filesystem_tree_file_t *_file)
 
GPAK_API void filesystem_tree_delete (filesystem_tree_node_t *_root)
 
GPAK_API filesystem_tree_iterator_tfilesystem_iterator_create (filesystem_tree_node_t *_root)
 
GPAK_API filesystem_tree_node_tfilesystem_iterator_next_directory (filesystem_tree_iterator_t *_iterator)
 
GPAK_API filesystem_tree_node_tfilesystem_iterator_next_subling_directory (filesystem_tree_iterator_t *_iterator)
 
GPAK_API filesystem_tree_file_tfilesystem_iterator_next_file (filesystem_tree_iterator_t *_iterator)
 
GPAK_API void filesystem_iterator_free (filesystem_tree_iterator_t *_iterator)
 

Detailed Description

Author
AdamFull
Date
23.04.2023
Brief Description:\n The filesystem_tree.h header file contains methods and data structures
for working with a filesystem tree used in the Gpak library for managing game archives.

This header file defines the data structures and functions for representing and manipulating a filesystem tree used to store files and directories within a Gpak game archive. It provides an interface for iterating over the directories and files stored in the archive, allowing for efficient and organized access to game assets.

The filesystem tree consists of nodes representing directories and files within the game archive. Each node can have zero or more child nodes, representing the contents of a directory. File nodes store the file metadata and can be used to access the file data stored within the archive.

To use the filesystem tree functions provided by this header, include it alongside the main gpak.h header file and link against the Gpak library in your project.

Definition in file filesystem_tree.h.