GPAK  1.0.0
A general-purpose archive library

◆ gpak_add_directory()

GPAK_API int gpak_add_directory ( gpak_t _pak,
const char *  _internal_path 
)
Brief Description:\n Adds a directory to a G-PAK archive.

This function adds a new directory to the G-PAK archive with the specified _internal_path.

Parameters
_pakA pointer to the gpak_t
_internal_pathA string containing the internal path of the directory to add.
Returns
An integer value indicating success (0) or failure (-1).

Definition at line 348 of file gpak.c.

349 {
350  filesystem_tree_add_directory(_pak->root_, _internal_path);
351  return _gpak_make_error(_pak, GPAK_ERROR_OK);
352 }
GPAK_API void filesystem_tree_add_directory(filesystem_tree_node_t *_root, const char *_path)
@ GPAK_ERROR_OK
Definition: gpak_data.h:155
struct filesystem_tree_node * root_
Definition: gpak_data.h:260

References filesystem_tree_add_directory(), GPAK_ERROR_OK, and gpak::root_.