Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
list.c File Reference

Listing information about .xz files. More...

#include "private.h"
#include "tuklib_integer.h"

Data Structures

struct  xz_file_info
 Information about a .xz file. More...
 
struct  block_header_info
 Information about a .xz Block. More...
 

Macros

#define XZ_FILE_INFO_INIT   { NULL, 0, 0, true, 50000002 }
 
#define BLOCK_HEADER_INFO_INIT   { .filter_chain = NULL }
 
#define block_header_info_end(bhi)
 
#define COLON_STR(num)
 
#define HEADING_STR(num)
 
#define CHECKS_STR_SIZE   1024
 

Enumerations

enum  {
  COLON_STR_STREAMS , COLON_STR_BLOCKS , COLON_STR_COMPRESSED_SIZE , COLON_STR_UNCOMPRESSED_SIZE ,
  COLON_STR_RATIO , COLON_STR_CHECK , COLON_STR_STREAM_PADDING , COLON_STR_MEMORY_NEEDED ,
  COLON_STR_SIZES_IN_HEADERS , COLON_STR_NUMBER_OF_FILES
}
 Enum matching the above strings. More...
 
enum  {
  HEADING_STREAM , HEADING_BLOCK , HEADING_BLOCKS , HEADING_COMPOFFSET ,
  HEADING_UNCOMPOFFSET , HEADING_COMPSIZE , HEADING_UNCOMPSIZE , HEADING_TOTALSIZE ,
  HEADING_RATIO , HEADING_CHECK , HEADING_CHECKVAL , HEADING_PADDING ,
  HEADING_HEADERSIZE , HEADING_HEADERFLAGS , HEADING_MEMUSAGE , HEADING_FILTERS
}
 Enum matching the above strings. More...
 

Functions

void list_totals (void)
 Show the totals after all files have been listed.
 
void list_file (const char *filename)
 List information about the given .xz file.
 

Detailed Description

Listing information about .xz files.

Macro Definition Documentation

◆ block_header_info_end

#define block_header_info_end ( bhi)
Value:
free((bhi)->filter_chain)

◆ BLOCK_HEADER_INFO_INIT

#define BLOCK_HEADER_INFO_INIT   { .filter_chain = NULL }

◆ CHECKS_STR_SIZE

#define CHECKS_STR_SIZE   1024

Buffer size for get_check_names(). This may be a bit ridiculous, but at least it's enough if some language needs many multibyte chars.

◆ COLON_STR

#define COLON_STR ( num)
Value:
colon_strs_fw[num], _(colon_strs[num])
#define _(msgid)
Definition getopt.c:49

Convenience macro to get the translated string and its field width using a COLON_STR_foo enum.

◆ HEADING_STR

#define HEADING_STR ( num)
Value:
headings[num].fw, _(headings[num].str)
const char * str
Table column heading string.
Definition list.c:109

◆ XZ_FILE_INFO_INIT

#define XZ_FILE_INFO_INIT   { NULL, 0, 0, true, 50000002 }

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Enum matching the above strings.

Enumerator
COLON_STR_STREAMS 
COLON_STR_BLOCKS 
COLON_STR_COMPRESSED_SIZE 
COLON_STR_UNCOMPRESSED_SIZE 
COLON_STR_RATIO 
COLON_STR_CHECK 
COLON_STR_STREAM_PADDING 
COLON_STR_MEMORY_NEEDED 
COLON_STR_SIZES_IN_HEADERS 
COLON_STR_NUMBER_OF_FILES 

◆ anonymous enum

anonymous enum

Enum matching the above strings.

Enumerator
HEADING_STREAM 
HEADING_BLOCK 
HEADING_BLOCKS 
HEADING_COMPOFFSET 
HEADING_UNCOMPOFFSET 
HEADING_COMPSIZE 
HEADING_UNCOMPSIZE 
HEADING_TOTALSIZE 
HEADING_RATIO 
HEADING_CHECK 
HEADING_CHECKVAL 
HEADING_PADDING 
HEADING_HEADERSIZE 
HEADING_HEADERFLAGS 
HEADING_MEMUSAGE 
HEADING_FILTERS 

Function Documentation

◆ list_file()

void list_file ( const char * filename)
extern

List information about the given .xz file.

◆ list_totals()

void list_totals ( void )
extern

Show the totals after all files have been listed.

Variable Documentation

◆ all_have_sizes

bool all_have_sizes

◆ blocks

uint64_t blocks

◆ checks

uint32_t checks

◆ columns

int columns

Number of terminal-columns to use for this table-column. If a translated string is longer than the initial value, this value will be increased in init_headings().

◆ compressed_size

uint64_t compressed_size

◆ files

uint64_t files

◆ fw

int fw

Field width to use for printf() to pad "str" to use "columns" number of columns on a terminal. This is calculated in init_headings().

◆ memusage_max

uint64_t memusage_max

◆ min_version

uint32_t min_version

◆ str

const char* str

Table column heading string.

◆ stream_padding

uint64_t stream_padding

◆ streams

uint64_t streams

◆ uncompressed_size

uint64_t uncompressed_size