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

Go to the source code of this file.

Functions

GPAK_API gpak_tgpak_open (const char *_path, int _mode)
 
GPAK_API int gpak_close (gpak_t *_pak)
 
GPAK_API void gpak_set_user_data (gpak_t *_pak, void *_user_data)
 
GPAK_API void gpak_set_error_handler (gpak_t *_pak, gpak_error_handler_t _error_handler)
 
GPAK_API void gpak_set_process_handler (gpak_t *_pak, gpak_progress_handler_t _progress_handler)
 
GPAK_API void gpak_set_compression_algorithm (gpak_t *_pak, int _algorithm)
 
GPAK_API void gpak_set_compression_level (gpak_t *_pak, int _level)
 
GPAK_API int gpak_add_directory (gpak_t *_pak, const char *_internal_path)
 
GPAK_API int gpak_add_file (gpak_t *_pak, const char *_external_path, const char *_internal_path)
 
GPAK_API struct filesystem_tree_nodegpak_get_root (gpak_t *_pak)
 
GPAK_API struct filesystem_tree_nodegpak_find_directory (gpak_t *_pak, const char *_path)
 
GPAK_API struct filesystem_tree_filegpak_find_file (gpak_t *_pak, const char *_path)
 
GPAK_API gpak_file_tgpak_fopen (gpak_t *_pak, const char *_path)
 
GPAK_API int gpak_fgetc (gpak_file_t *_file)
 
GPAK_API char * gpak_fgets (gpak_file_t *_file, char *_buffer, int _max)
 
GPAK_API int gpak_ungetc (gpak_file_t *_file, int _character)
 
GPAK_API size_t gpak_fread (void *_buffer, size_t _elemSize, size_t _elemCount, gpak_file_t *_file)
 
GPAK_API long gpak_ftell (gpak_file_t *_file)
 
GPAK_API long gpak_fseek (gpak_file_t *_file, long _offset, int _origin)
 
GPAK_API long gpak_feof (gpak_file_t *_file)
 
GPAK_API void gpak_fclose (gpak_file_t *_file)
 

Detailed Description

Author
AdamFull
Date
23.04.2023
Brief Description:\n Gpak (Game Pack) is a file archive library specifically designed for
game archives, providing functionality for creating, modifying and extracting archive files.

This library allows users to create, read and manipulate game archive files using a variety of compression algorithms. It provides a simple API for managing the contents of an archive and supports various compression methods such as Deflate, LZ4, and ZSTD.

The gpak.h header file contains the main API for the Gpak library, including functions for creating and manipulating archives, reading and writing files within archives, and managing the archive's metadata.

To use the Gpak library, simply include this header file and link against the Gpak library in your project.

Definition in file gpak.h.