Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
compress2dll.c File Reference
#include <windows.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <ctype.h>
#include <math.h>
#include <wctype.h>
#include <wchar.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <locale.h>
#include <signal.h>
#include <limits.h>
#include <float.h>
#include <iso646.h>
#include <assert.h>
#include <stdbool.h>
#include <process.h>
#include "stdio_v2.h"
#include "aline_definitive_header_2_.h"

Macros

#define __attribute__(unused)
 
#define uchar   unsigned char
 
#define uint   unsigned int
 
#define ushort   unsigned short
 
#define __amandacall   __stdcall
 
#define AMANDA__SIZE_ww   ((32767 * 2) + 2)
 
#define AMANDA__SIZE   ((32767 * 6) + 2)
 
#define AMANDA__SIZE_w   (32767)
 
#define AMARIC__VERSION   "0.5.0 build 0020"
 
#define __INT32_OR_INT64   int
 

Functions

int __amandacall get_multithread_progress_8 (void)
 
void pedro_dprintf (int amanda_level, char *format,...)
 
int __stdcall IsAMD64 (void)
 
int compress2_uncompress (char *input, char *output)
 
int compress2_compress (char *input, char *output, int levelin)
 
int compress2_compress_k (char *input, char *output, int levelin)
 This is the function to compress using lzop2 (lzop with multi-thread support)
 
void removedordeespaconoinicio (char *path)
 
void removedordeespaconofinal (char *path)
 
char * getcpuname_k (void)
 
char * getprocessorbrandstring_k (void)
 
void dprintf (char *format,...)
 
int __stdcall interface1_8 (__INT32_OR_INT64 argumento1, __INT32_OR_INT64 argumento2, __INT32_OR_INT64 argumento3, __INT32_OR_INT64 argumento4)
 
int __stdcall Compresscompress2_ (char *Inputfile, char *OutPutFile, int CompressionLevel)
 
int __stdcall Compresscompress2__k (char *Inputfile, char *OutPutFile, int CompressionLevel)
 
int __stdcall Decompresscompress2_ (char *Inputfile, char *OutPutFile)
 
int __stdcall compress_l3___rspk_ar (char *Input_amanda_file, char *OutPut_ricardo_File, int Compression_juliete_Level, int n_threads_z__, char *temp_path_z__)
 function to compress a lzop2 file
 
int __stdcall uncompress_l3___rspk_ar (char *Inputfile_arp, char *OutPutFile_arp, int n_threads_z__, char *temp_path_z_S2__, int *cores_used_z__)
 function to uncompress a lzop2 file
 
int __stdcall get_progress_l3___ar (void)
 
int __stdcall pause_l3___aakp_l3___ar (void)
 
int __stdcall resume_l3___aakp_l3___ar (void)
 
int __stdcall cancel_l3___aakp_l3___ar (void)
 

Variables

intcores_used_z_8 = NULL
 
bool is_multi_thread_z_8
 
char temp_path_z_8 [AMANDA__SIZE]
 
int n_threads_z_8 = 1
 
int intpause_8
 
int intcancel_8
 
int intstatus_8
 

Macro Definition Documentation

◆ __amandacall

#define __amandacall   __stdcall

◆ __attribute__

#define __attribute__ ( unused)
Value:
/* chloe */

◆ __INT32_OR_INT64

#define __INT32_OR_INT64   int

◆ AMANDA__SIZE

#define AMANDA__SIZE   ((32767 * 6) + 2)

The maximum size of an utf-8 encoded filename with the max limit of a file in Windows

◆ AMANDA__SIZE_w

#define AMANDA__SIZE_w   (32767)

The maximum size of Unicode characters in a path in Windows, Linux is 1024 characters as far I know

◆ AMANDA__SIZE_ww

#define AMANDA__SIZE_ww   ((32767 * 2) + 2)

◆ AMARIC__VERSION

#define AMARIC__VERSION   "0.5.0 build 0020"

◆ uchar

#define uchar   unsigned char

◆ uint

#define uint   unsigned int

◆ ushort

#define ushort   unsigned short

Function Documentation

◆ cancel_l3___aakp_l3___ar()

int __stdcall cancel_l3___aakp_l3___ar ( void )

◆ compress2_compress()

int compress2_compress ( char * input,
char * output,
int levelin )

◆ compress2_compress_k()

int compress2_compress_k ( char * input,
char * output,
int levelin )

This is the function to compress using lzop2 (lzop with multi-thread support)

Parameters
inpututf-8 encode uncompressed file
outpututf-8 destination compressed lzop2 file
levelinnot in use, at least this release
Returns
int
0 - No error
1 - Cannot open input file
2 - Cannot open output file
5 - Cannot read from input file
6 - Cannot write to output file
8 - Compression error
119 - User cancel
400 - Cannot write to temp file
403 - File access error
405 - Cannot open output temp file
407 - Cannot create temp file

◆ compress2_uncompress()

int compress2_uncompress ( char * input,
char * output )

◆ compress_l3___rspk_ar()

int __stdcall compress_l3___rspk_ar ( char * Input_amanda_file,
char * OutPut_ricardo_File,
int Compression_juliete_Level,
int n_threads_z__,
char * temp_path_z__ )

function to compress a lzop2 file

Parameters
Input_amanda_fileutf-8 file input file
OutPut_ricardo_Fileutf-8 file output compressed file
Compression_juliete_Levelnot in use this moment
n_threads_z__number of threads to use
temp_path_z__the temp path to use
Returns
int
0 - No error
1 - Cannot open input file
2 - Cannot open output file
5 - Cannot read from input file
6 - Cannot write to output file
8 - Compression error
119 - User cancel
400 - Cannot write to temp file
403 - File access error
405 - Cannot open output temp file
407 - Cannot create temp file

◆ Compresscompress2_()

int __stdcall Compresscompress2_ ( char * Inputfile,
char * OutPutFile,
int CompressionLevel )

◆ Compresscompress2__k()

int __stdcall Compresscompress2__k ( char * Inputfile,
char * OutPutFile,
int CompressionLevel )

◆ Decompresscompress2_()

int __stdcall Decompresscompress2_ ( char * Inputfile,
char * OutPutFile )

◆ dprintf()

void dprintf ( char * format,
... )

◆ get_multithread_progress_8()

int __amandacall get_multithread_progress_8 ( void )

◆ get_progress_l3___ar()

int __stdcall get_progress_l3___ar ( void )

◆ getcpuname_k()

char * getcpuname_k ( void )

◆ getprocessorbrandstring_k()

char * getprocessorbrandstring_k ( void )

◆ interface1_8()

int __stdcall interface1_8 ( __INT32_OR_INT64 argumento1,
__INT32_OR_INT64 argumento2,
__INT32_OR_INT64 argumento3,
__INT32_OR_INT64 argumento4 )

◆ IsAMD64()

int __stdcall IsAMD64 ( void )

◆ pause_l3___aakp_l3___ar()

int __stdcall pause_l3___aakp_l3___ar ( void )

◆ pedro_dprintf()

void pedro_dprintf ( int amanda_level,
char * format,
... )

◆ removedordeespaconofinal()

void removedordeespaconofinal ( char * path)

◆ removedordeespaconoinicio()

void removedordeespaconoinicio ( char * path)

◆ resume_l3___aakp_l3___ar()

int __stdcall resume_l3___aakp_l3___ar ( void )

◆ uncompress_l3___rspk_ar()

int __stdcall uncompress_l3___rspk_ar ( char * Inputfile_arp,
char * OutPutFile_arp,
int n_threads_z__,
char * temp_path_z_S2__,
int * cores_used_z__ )

function to uncompress a lzop2 file

Returns
int

0 - No error
1 - Cannot open input file
2 - Cannot open output file
5 - Cannot read from input file
6 - Cannot write to output file
7 - Invalid lzop2 file
8 - Decompression error
119 - User cancel
403 - File access error
405 - Cannotm open output file
407 - Cannot create temp file

Variable Documentation

◆ cores_used_z_8

int* cores_used_z_8 = NULL

◆ intcancel_8

int intcancel_8

◆ intpause_8

int intpause_8

◆ intstatus_8

int intstatus_8

◆ is_multi_thread_z_8

bool is_multi_thread_z_8
extern

◆ n_threads_z_8

int n_threads_z_8 = 1

◆ temp_path_z_8

char temp_path_z_8[AMANDA__SIZE]