libsqsh v1.5.1
Loading...
Searching...
No Matches
SqshTable Struct Reference

A generic table as used in an archive. More...

#include <sqsh_table_private.h>

Public Member Functions

int sqsh_table_get (const struct SqshTable *table, sqsh_index_t index, void *target)
 Retrieves an element from the table.
 
int sqsh_id_table_get (const struct SqshIdTable *table, sqsh_index_t index, uint32_t *id)
 Retrieves an element from the table.
 
int sqsh_export_table_resolve_inode2 (const struct SqshExportTable *table, uint32_t inode, uint64_t *inode_ref)
 Retrieves an element from the table.
 
int sqsh_export_table_resolve_inode (const struct SqshExportTable *table, uint64_t inode, uint64_t *inode_ref)
 Retrieves an element from the table.
 

Detailed Description

A generic table as used in an archive.

Definition at line 56 of file sqsh_table_private.h.

Member Function Documentation

◆ sqsh_export_table_resolve_inode()

int sqsh_export_table_resolve_inode ( const struct SqshExportTable * table,
uint64_t inode,
uint64_t * inode_ref )

Retrieves an element from the table.

Deprecated
Since 1.5.0. Use sqsh_export_table_resolve_inode2 instead.
Parameters
[in]tableThe table to retrieve the element from.
[in]inodeThe index of the element to retrieve.
[out]inode_refA pointer to a uint64_t to store the inode reference
Returns
0 on success, a negative value on error.

◆ sqsh_export_table_resolve_inode2()

int sqsh_export_table_resolve_inode2 ( const struct SqshExportTable * table,
uint32_t inode,
uint64_t * inode_ref )

Retrieves an element from the table.

Parameters
[in]tableThe table to retrieve the element from.
[in]inodeThe index of the element to retrieve.
[out]inode_refA pointer to a uint64_t to store the inode reference
Returns
0 on success, a negative value on error.

◆ sqsh_id_table_get()

int sqsh_id_table_get ( const struct SqshIdTable * table,
sqsh_index_t index,
uint32_t * id )

Retrieves an element from the table.

Parameters
[in]tableThe table to retrieve the element from.
[in]indexThe index of the element to retrieve.
[out]idThe buffer to store the element in.
Returns
0 on success, a negative value on error.

◆ sqsh_table_get()

int sqsh_table_get ( const struct SqshTable * table,
sqsh_index_t index,
void * target )

Retrieves an element from the table.

Parameters
[in]tableThe table to retrieve the element from.
[in]indexThe index of the element to retrieve.
[out]targetThe buffer to store the element in.
Returns
0 on success, a negative value on error.

The documentation for this struct was generated from the following files: