libsqsh v1.5.1
Loading...
Searching...
No Matches
sqsh_file_private.h File Reference
#include "sqsh_file.h"
#include "sqsh_extract_private.h"
#include "sqsh_mapper_private.h"
#include "sqsh_metablock_private.h"
#include "sqsh_reader_private.h"
#include <stdint.h>
Include dependency graph for sqsh_file_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SqshFragmentView
 A view over the contents of a fragment. More...
 
struct  SqshFileIterator
 An iterator over the contents of a file. More...
 
struct  SqshFileReader
 A reader over the contents of a file. More...
 
struct  SqshInodeImpl
 The file type implementation. More...
 
struct  SqshFile
 The Inode context. More...
 

Macros

#define SQSH_INODE_REF_NULL   UINT64_MAX
 

Functions

SQSH_NO_EXPORT int sqsh__fragment_view_init (struct SqshFragmentView *view, const struct SqshFile *file)
 
SQSH_NO_EXPORT const uint8_t * sqsh__fragment_view_data (const struct SqshFragmentView *view)
 
SQSH_NO_EXPORT size_t sqsh__fragment_view_size (const struct SqshFragmentView *view)
 
SQSH_NO_EXPORT int sqsh__fragment_view_cleanup (struct SqshFragmentView *view)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__file_iterator_init (struct SqshFileIterator *iterator, const struct SqshFile *file)
 
SQSH_NO_EXPORT int sqsh__file_iterator_cleanup (struct SqshFileIterator *iterator)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__file_reader_init (struct SqshFileReader *reader, const struct SqshFile *file)
 
SQSH_NO_EXPORT int sqsh__file_reader_cleanup (struct SqshFileReader *reader)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__file_init (struct SqshFile *context, struct SqshArchive *sqsh, uint64_t inode_ref)
 
SQSH_NO_EXPORT int sqsh__file_cleanup (struct SqshFile *context)
 
SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_directory_block_start (const struct SqshDataInode *inode)
 
SQSH_NO_EXPORT uint16_t sqsh__file_inode_null_directory_block_offset (const struct SqshDataInode *inode)
 
SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_directory_parent_inode (const struct SqshDataInode *inode)
 
SQSH_NO_EXPORT uint64_t sqsh__file_inode_null_blocks_start (const struct SqshDataInode *inode)
 
SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_block_size_info (const struct SqshDataInode *inode, sqsh_index_t index)
 
SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_fragment_block_index (const struct SqshDataInode *inode)
 
SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_fragment_block_offset (const struct SqshDataInode *inode)
 
SQSH_NO_EXPORT const char * sqsh__file_inode_null_symlink_target_path (const struct SqshDataInode *inode)
 
SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_symlink_target_size (const struct SqshDataInode *inode)
 
SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_device_id (const struct SqshDataInode *inode)
 
SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_xattr_index (const struct SqshDataInode *inode)
 

Variables

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_directory_impl
 
SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_directory_ext_impl
 
SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_file_impl
 
SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_file_ext_impl
 
SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_symlink_impl
 
SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_symlink_ext_impl
 
SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_device_impl
 
SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_device_ext_impl
 
SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_ipc_impl
 
SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_ipc_ext_impl
 

Detailed Description

Author
Enno Boland (mail@.nosp@m.ebol.nosp@m.and.d.nosp@m.e)

Definition in file sqsh_file_private.h.

Macro Definition Documentation

◆ SQSH_INODE_REF_NULL

#define SQSH_INODE_REF_NULL   UINT64_MAX

Definition at line 210 of file sqsh_file_private.h.

Function Documentation

◆ sqsh__file_cleanup()

SQSH_NO_EXPORT int sqsh__file_cleanup ( struct SqshFile * context)

◆ sqsh__file_init()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__file_init ( struct SqshFile * context,
struct SqshArchive * sqsh,
uint64_t inode_ref )

◆ sqsh__file_inode_null_block_size_info()

SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_block_size_info ( const struct SqshDataInode * inode,
sqsh_index_t index )

◆ sqsh__file_inode_null_blocks_start()

SQSH_NO_EXPORT uint64_t sqsh__file_inode_null_blocks_start ( const struct SqshDataInode * inode)

◆ sqsh__file_inode_null_device_id()

SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_device_id ( const struct SqshDataInode * inode)

◆ sqsh__file_inode_null_directory_block_offset()

SQSH_NO_EXPORT uint16_t sqsh__file_inode_null_directory_block_offset ( const struct SqshDataInode * inode)

◆ sqsh__file_inode_null_directory_block_start()

SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_directory_block_start ( const struct SqshDataInode * inode)

◆ sqsh__file_inode_null_directory_parent_inode()

SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_directory_parent_inode ( const struct SqshDataInode * inode)

◆ sqsh__file_inode_null_fragment_block_index()

SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_fragment_block_index ( const struct SqshDataInode * inode)

◆ sqsh__file_inode_null_fragment_block_offset()

SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_fragment_block_offset ( const struct SqshDataInode * inode)

◆ sqsh__file_inode_null_symlink_target_path()

SQSH_NO_EXPORT const char * sqsh__file_inode_null_symlink_target_path ( const struct SqshDataInode * inode)

◆ sqsh__file_inode_null_symlink_target_size()

SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_symlink_target_size ( const struct SqshDataInode * inode)

◆ sqsh__file_inode_null_xattr_index()

SQSH_NO_EXPORT uint32_t sqsh__file_inode_null_xattr_index ( const struct SqshDataInode * inode)

◆ sqsh__file_iterator_cleanup()

SQSH_NO_EXPORT int sqsh__file_iterator_cleanup ( struct SqshFileIterator * iterator)

◆ sqsh__file_iterator_init()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__file_iterator_init ( struct SqshFileIterator * iterator,
const struct SqshFile * file )

◆ sqsh__file_reader_cleanup()

SQSH_NO_EXPORT int sqsh__file_reader_cleanup ( struct SqshFileReader * reader)

◆ sqsh__file_reader_init()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__file_reader_init ( struct SqshFileReader * reader,
const struct SqshFile * file )

◆ sqsh__fragment_view_cleanup()

SQSH_NO_EXPORT int sqsh__fragment_view_cleanup ( struct SqshFragmentView * view)

◆ sqsh__fragment_view_data()

SQSH_NO_EXPORT const uint8_t * sqsh__fragment_view_data ( const struct SqshFragmentView * view)

◆ sqsh__fragment_view_init()

SQSH_NO_EXPORT int sqsh__fragment_view_init ( struct SqshFragmentView * view,
const struct SqshFile * file )

◆ sqsh__fragment_view_size()

SQSH_NO_EXPORT size_t sqsh__fragment_view_size ( const struct SqshFragmentView * view)

Variable Documentation

◆ sqsh__inode_device_ext_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_device_ext_impl
extern

◆ sqsh__inode_device_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_device_impl
extern

◆ sqsh__inode_directory_ext_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_directory_ext_impl
extern

◆ sqsh__inode_directory_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_directory_impl
extern

◆ sqsh__inode_file_ext_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_file_ext_impl
extern

◆ sqsh__inode_file_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_file_impl
extern

◆ sqsh__inode_ipc_ext_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_ipc_ext_impl
extern

◆ sqsh__inode_ipc_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_ipc_impl
extern

◆ sqsh__inode_symlink_ext_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_symlink_ext_impl
extern

◆ sqsh__inode_symlink_impl

SQSH_NO_EXPORT const struct SqshInodeImpl sqsh__inode_symlink_impl
extern