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

file with the function calls to brotli compression More...

#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 "helper_utilities_by_amanda_and_ricardo.c"

Macros

#define __attribute__(unused)
 
#define uchar   unsigned char
 
#define uint   unsigned int
 
#define ushort   unsigned short
 

Functions

WCHAR * utf8_2_wide_dl (const char *pUTF8)
 my temporary utf8_2_wide_dl function to add full Unicode support and future (when modified) support to long filenames. (jan/2025)
 
void pedro_dprintf2 (int amanda_level, char *format,...)
 pedro_dprintf2 is my variant of my debug function because too much calls to pedro_dprintf these days, I am lazy, sorry....
 
__int64 lffilesize_dl (const char *szFileName)
 default function to get the size of files with Unicode support
 
int main_10 (int const argCount, const char **argv)
 
int __stdcall compress_br___rspk_ar (char *Input_amanda_file_utf_8, char *OutPut_ricardo_File_utf_8, __attribute__((unused)) int Compression_juliete_Level_unused___)
 this is the function to compress using brotli format

 
int __stdcall uncompress_br___rspk_ar (char *Input_amanda_file_utf_8, char *OutPut_ricardo_File_utf_8)
 function to uncompress a brotli file

 
int __stdcall get_progress_br___ar (void)
 Get the progress of the compression or decompression.
 
int __stdcall pause_br___aakp_br___ar (void)
 to pause the compression por decompression
 
int __stdcall resume_br___aakp_br___ar (void)
 to resume the compression or decompression
 
int __stdcall cancel_br___aakp_br___ar (void)
 to cancel the compression or decompression
 

Detailed Description

file with the function calls to brotli compression

Author
Ric
Version
1.0.1
Date
2024-dec-30 09:35

Macro Definition Documentation

◆ __attribute__

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

◆ uchar

#define uchar   unsigned char

◆ uint

#define uint   unsigned int

◆ ushort

#define ushort   unsigned short

Function Documentation

◆ cancel_br___aakp_br___ar()

int __stdcall cancel_br___aakp_br___ar ( void )

to cancel the compression or decompression

Returns
int always 0

◆ compress_br___rspk_ar()

int __stdcall compress_br___rspk_ar ( char * Input_amanda_file_utf_8,
char * OutPut_ricardo_File_utf_8,
__attribute__((unused)) int Compression_juliete_Level_unused___ )

this is the function to compress using brotli format


You can read more abour brotli compression
at: https://en.wikipedia.org/wiki/Brotli

Parameters
Input_amanda_file_utf_8utf-8 encoded input file
OutPut_ricardo_File_utf_8utf-8 encoded output file
Returns
int 0 if compression occurred without problems, 1 otherwise

◆ get_progress_br___ar()

int __stdcall get_progress_br___ar ( void )

Get the progress of the compression or decompression.

Returns
int the progress value, range from 0 to 10000

◆ lffilesize_dl()

__int64 lffilesize_dl ( const char * szFileName)

default function to get the size of files with Unicode support

Parameters
szFileNameutf-8 encoded file
Returns
__int64 the size of the file or 0

◆ main_10()

int main_10 ( int const argCount,
const char ** argv )
extern

◆ pause_br___aakp_br___ar()

int __stdcall pause_br___aakp_br___ar ( void )

to pause the compression por decompression

Returns
int always 0

◆ pedro_dprintf2()

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

pedro_dprintf2 is my variant of my debug function because too much calls to pedro_dprintf these days, I am lazy, sorry....

em brotli or brotli2

Parameters
amanda_levelif equal or above 0 print the string
formatprintf based format
...

◆ resume_br___aakp_br___ar()

int __stdcall resume_br___aakp_br___ar ( void )

to resume the compression or decompression

Returns
int always 0

◆ uncompress_br___rspk_ar()

int __stdcall uncompress_br___rspk_ar ( char * Input_amanda_file_utf_8,
char * OutPut_ricardo_File_utf_8 )

function to uncompress a brotli file


You can read more abour brotli compression
at: https://en.wikipedia.org/wiki/Brotli

Parameters
Input_amanda_file_utf_8utf-8 encoded brotli compressed file
OutPut_ricardo_File_utf_8utf-8 encoded destination file
Returns
int 0 if no error

◆ utf8_2_wide_dl()

WCHAR * utf8_2_wide_dl ( const char * pUTF8)

my temporary utf8_2_wide_dl function to add full Unicode support and future (when modified) support to long filenames. (jan/2025)

Parameters
pUTF8
Returns
WCHAR*