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

Go to the source code of this file.

Macros

#define Z_DEBUG
 

Enumerations

enum  feline_modes { FELINE_MODE_NORMAL , FELINE_MODE_DELETE_ROOT , FELINE_MODE_DELETE_NODE }
 
enum  funny_mode { FELINE_MODE_INCLUDE_ = 1001 , FELINE_MODE_EXCLUDE_ }
 
enum  { MODE_IS_REPLACE__ , MODE_IS_COUNT__ }
 

Functions

wchar_t * permissive_name_m_ (const wchar_t *wname)
 
WCHAR * amanda_utf8towide_3_ (char *pUTF8)
 
int feline_read_xml (char *filename_utf8_feline, char *root__________feline, char *node__________feline, char *attribute_____feline, char *out_data______feline)
 
int feline_write_xml (char *filename_utf8_feline, char *root__________feline, char *node__________feline, char *attribute_____feline, char *in_data_______feline_)
 
void pedro_dprintf (int amanda_level, char *format,...)
 
int __fastcall replacestringsensitive2_juliete (char *comando, char *source, char *dest)
 
int feline_read_xml (char *filename_utf8_feline, char *root__________feline, char *node__________feline, __attribute__((unused)) char *attribute_____feline, char *out_data______feline)
 
int feline_write_xml (char *filename_utf8_feline, char *root__________feline, char *node__________feline, __attribute__((unused)) char *attribute_____feline, char *in_data_______feline_)
 
int feline_remove_root_xml (char *filename_utf8_feline, char *root__________feline)
 
int feline_remove_node_xml (char *filename_utf8_feline, char *root__________feline, char *node__________feline)
 

Macro Definition Documentation

◆ Z_DEBUG

#define Z_DEBUG

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MODE_IS_REPLACE__ 
MODE_IS_COUNT__ 

◆ feline_modes

Enumerator
FELINE_MODE_NORMAL 
FELINE_MODE_DELETE_ROOT 
FELINE_MODE_DELETE_NODE 

◆ funny_mode

enum funny_mode
Enumerator
FELINE_MODE_INCLUDE_ 
FELINE_MODE_EXCLUDE_ 

Function Documentation

◆ amanda_utf8towide_3_()

WCHAR * amanda_utf8towide_3_ ( char * pUTF8)

To convert an utf-8 encoded filename to a wide string (WCHAR *), we . provide two functions that are exactly the same because someone may use it in multi-thread code

Parameters
pUTF8the input utf-8 encoded filename
Returns
the static allocated WCHAR array with the filename as wide string

◆ feline_read_xml() [1/2]

int feline_read_xml ( char * filename_utf8_feline,
char * root__________feline,
char * node__________feline,
__attribute__((unused)) char * attribute_____feline,
char * out_data______feline )

To remove the end of string spaces including \r
and \t Function to get our modified and limited xml implemented file... in 2021

Parameters
filename_utf8_felinethe XML file as utf-8
attribute_____felinethe attibute to get, not implemented...but will in a near future
node__________felinethe node
out_data______felinethe output char * need to have space enough for the data or an memory access error can occur
Returns
0 if no error, 1 if XML file is not valid, 2 if root not found

◆ feline_read_xml() [2/2]

int feline_read_xml ( char * filename_utf8_feline,
char * root__________feline,
char * node__________feline,
char * attribute_____feline,
char * out_data______feline )

Function to get our modified and limited xml implemented file... in 2021

Parameters
filename_utf8_felinethe XML file as utf-8
attribute_____felinethe attibute to get, not implemented...but will in a near future
node__________felinethe node
out_data______felinethe output char * need to have space enough for the data or an memory access error can occur
Returns
0 if no error, 1 if XML file is not valid, 2 if root not found

◆ feline_remove_node_xml()

int feline_remove_node_xml ( char * filename_utf8_feline,
char * root__________feline,
char * node__________feline )

Function to remove a node if you are a clean programmer...

Parameters
filename_utf8_felinethe XML file
root__________felinethe root
node__________felinethe node to get rid from the XML file
Returns
0 if no error, 1 otherwise, as you may expect...

◆ feline_remove_root_xml()

int feline_remove_root_xml ( char * filename_utf8_feline,
char * root__________feline )

Function to remove a node if you need to do it...

Parameters
filename_utf8_felinethe XML file
root__________felinethe root
Returns
0 if no error, 1 otherwise

◆ feline_write_xml() [1/2]

int feline_write_xml ( char * filename_utf8_feline,
char * root__________feline,
char * node__________feline,
__attribute__((unused)) char * attribute_____feline,
char * in_data_______feline_ )

Function to write XML file

Parameters
filename_utf8_felinethe XML file...
root__________felinethe root, if it donīt exist it will be created
node__________felinethe node, if it donīt exist it will be created
attribute_____felinethe attibute, not in use in this version but will in the future

@ in_data_______feline_ the input data to convert and save to the not standard XML file

Returns
0 if no error, 1 if cannot write to the XML file or if the path is invalid

◆ feline_write_xml() [2/2]

int feline_write_xml ( char * filename_utf8_feline,
char * root__________feline,
char * node__________feline,
char * attribute_____feline,
char * in_data_______feline_ )

Function to write XML file

Parameters
filename_utf8_felinethe XML file...
root__________felinethe root, if it donīt exist it will be created
node__________felinethe node, if it donīt exist it will be created
attribute_____felinethe attibute, not in use in this version but will in the future

@ in_data_______feline_ the input data to convert and save to the not standard XML file

Returns
0 if no error, 1 if cannot write to the XML file or if the path is invalid

◆ pedro_dprintf()

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

◆ permissive_name_m_()

wchar_t * permissive_name_m_ ( const wchar_t * wname)

To make the path wide mode aware, stolen from libarchive

15/september/2021 10:14, last visit 16/09/2021 22:36 by bhond..., last visit 21/sep/2021 03:57...

◆ replacestringsensitive2_juliete()

int __fastcall replacestringsensitive2_juliete ( char * comando,
char * source,
char * dest )