Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
bzip2dll.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 "bzlib.h"

Go to the source code of this file.

Macros

#define AMANDA__SIZE   ((32767 * 6) + 2)
 
#define AMANDA__SIZE_w   (32767)
 
#define __INT32_OR_INT64   int
 

Functions

void pedro_dprintf (int amanda_level, char *format,...)
 
int utf8towide (const char *pUTF8, WCHAR *pUSC2, int nUSC2)
 
void removedordeespaconoinicio (char *path)
 
void removedordeespaconofinal (char *path)
 
char * getcpuname_k (void)
 
char * getprocessorbrandstring_k (void)
 
void dprintf (char *format,...)
 
__int64 getfilesize_bzip2_xcx_ar (char *infile_ar)
 
int __stdcall bzip2compress (char *infile, char *outfile, char *levelch)
 
int __stdcall bzip2decompress (char *infile, char *outfile)
 
int __stdcall pause (void)
 
int __stdcall cancel (void)
 
int __stdcall bresume (void)
 
int __stdcall startapi_bzip2_xcx (__attribute__((unused)) int parameter)
 
int __stdcall execute (char *infile, char *outfile, char *level, int comando_bzip2_xcx1)
 
int __stdcall getprogress ()
 
int __stdcall status (int newvalue)
 
int __stdcall interface1_bzip2_xcx (__INT32_OR_INT64 argumento1, __INT32_OR_INT64 argumento2, __INT32_OR_INT64 argumento3, __INT32_OR_INT64 argumento4)
 
int __stdcall ControlName_bzip2_xcx (char *data)
 
int __stdcall GetCPUVendor (char *data)
 
int __stdcall GetCPUBrandString (char *data)
 
void mprintf2_bzip2_xcx (char *format,...)
 
int __stdcall About_bzip2_xcx ()
 
int __stdcall Compress_bzip2_xcx (char *Inputfile, char *OutPutFile, int CompressionLevel)
 
int __stdcall GetStatus ()
 
int __stdcall GetReturnValue_bzip2_xcx ()
 
double dgetval (double maxa, double porr)
 
double dgetmax (double por, double fatia)
 
double dgetpor_bzip2_xcx (double maxa, double fatiaa)
 
int secondtostring (double value, char *data)
 
int __stdcall GetProgress ()
 
int __stdcall GetTimeToFinish (char *data)
 
int __stdcall GetProgress_bzip2_xcx ()
 
int __stdcall CompressBzip3 (char *Inputfile, char *OutPutFile, int CompressionLevel)
 
int __stdcall CompressBzip3_SHA512_k (char *Inputfile, char *OutPutFile, int CompressionLevel)
 
int __stdcall PauseCompress ()
 
int __stdcall ResumeCompress ()
 
int __stdcall CancelCompress ()
 
int __stdcall Decompress (char *Inputfile, char *OutPutFile)
 
int __stdcall DecompressBzip3 (char *Inputfile, char *OutPutFile)
 

Variables

char myinfile [255]
 
char myoutfile [255]
 
int comando_bzip2_xcx
 
char mylevel [255]
 
char library [255]
 
int intpause
 
int intcancel
 
int64_t filesize_bzip2_xcx
 
int64_t intfatia
 
int intstatus_bzip2_xcx
 
int intreturn
 
int modo = 0
 
int levelok = 6
 
int bzip3percent
 
int unicodemode_bzip2_xcx = 0
 
double _time
 

Macro Definition Documentation

◆ __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

Function Documentation

◆ About_bzip2_xcx()

int __stdcall About_bzip2_xcx ( )

◆ bresume()

int __stdcall bresume ( void )

◆ bzip2compress()

int __stdcall bzip2compress ( char * infile,
char * outfile,
char * levelch )

Julian old compression function

◆ bzip2decompress()

int __stdcall bzip2decompress ( char * infile,
char * outfile )

◆ cancel()

int __stdcall cancel ( void )

◆ CancelCompress()

int __stdcall CancelCompress ( )

◆ Compress_bzip2_xcx()

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

◆ CompressBzip3()

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

◆ CompressBzip3_SHA512_k()

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

◆ ControlName_bzip2_xcx()

int __stdcall ControlName_bzip2_xcx ( char * data)

◆ Decompress()

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

◆ DecompressBzip3()

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

◆ dgetmax()

double dgetmax ( double por,
double fatia )

pegar o maximo a partir da porcentagem

◆ dgetpor_bzip2_xcx()

double dgetpor_bzip2_xcx ( double maxa,
double fatiaa )

◆ dgetval()

double dgetval ( double maxa,
double porr )

pegor o valor da porcentagem

◆ dprintf()

void dprintf ( char * format,
... )

◆ execute()

int __stdcall execute ( char * infile,
char * outfile,
char * level,
int comando_bzip2_xcx1 )

◆ GetCPUBrandString()

int __stdcall GetCPUBrandString ( char * data)

◆ getcpuname_k()

char * getcpuname_k ( void )

◆ GetCPUVendor()

int __stdcall GetCPUVendor ( char * data)

◆ getfilesize_bzip2_xcx_ar()

__int64 getfilesize_bzip2_xcx_ar ( char * infile_ar)

wide path aware my love...

◆ getprocessorbrandstring_k()

char * getprocessorbrandstring_k ( void )

◆ GetProgress()

static int __stdcall GetProgress ( )

◆ getprogress()

int __stdcall getprogress ( )

◆ GetProgress_bzip2_xcx()

int __stdcall GetProgress_bzip2_xcx ( )

◆ GetReturnValue_bzip2_xcx()

int __stdcall GetReturnValue_bzip2_xcx ( )

◆ GetStatus()

int __stdcall GetStatus ( )

◆ GetTimeToFinish()

int __stdcall GetTimeToFinish ( char * data)

◆ interface1_bzip2_xcx()

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

◆ mprintf2_bzip2_xcx()

void mprintf2_bzip2_xcx ( char * format,
... )

◆ pause()

int __stdcall pause ( void )

◆ PauseCompress()

int __stdcall PauseCompress ( )

◆ pedro_dprintf()

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

◆ removedordeespaconofinal()

void removedordeespaconofinal ( char * path)

◆ removedordeespaconoinicio()

void removedordeespaconoinicio ( char * path)

◆ ResumeCompress()

int __stdcall ResumeCompress ( void )

◆ secondtostring()

int secondtostring ( double value,
char * data )

◆ startapi_bzip2_xcx()

int __stdcall startapi_bzip2_xcx ( __attribute__((unused)) int parameter)

◆ status()

int __stdcall status ( int newvalue)

◆ utf8towide()

int utf8towide ( const char * pUTF8,
WCHAR * pUSC2,
int nUSC2 )

Variable Documentation

◆ _time

double _time

◆ bzip3percent

int bzip3percent
extern

◆ comando_bzip2_xcx

int comando_bzip2_xcx

◆ filesize_bzip2_xcx

int64_t filesize_bzip2_xcx

◆ intcancel

int intcancel

◆ intfatia

int64_t intfatia

◆ intpause

int intpause

◆ intreturn

int intreturn

◆ intstatus_bzip2_xcx

int intstatus_bzip2_xcx

◆ levelok

int levelok = 6

◆ library

char library[255]

◆ modo

int modo = 0

◆ myinfile

char myinfile[255]

◆ mylevel

char mylevel[255]

◆ myoutfile

char myoutfile[255]

◆ unicodemode_bzip2_xcx

int unicodemode_bzip2_xcx = 0