C-KIT-GUI-GTK 0.62
ckit_ut.h File Reference

Go to the source code of this file.

Data Structures

struct  CSV_struct
 

Functions

void OS_Wait (int millisecs)
 
int OS_checkFilExist (char *filnam, int mode)
 
int OS_file_delete (char *fNam)
 
int OS_get_dialog ()
 
char * OS_get_ico_dir ()
 
char * OS_get_tmp_dir ()
 
int OS_file_sig_cre (int mode, void *data)
 
int OS_file_sig_wait (int mode, void *data)
 
long OS_FilSiz (char *filnam)
 
char * UTX_CleanCR (char *string)
 
int UTX_endDelChar (char *txtbuf, char chr)
 
void UTX_str_file (char *txbuf, long *fSiz, char *fnam)
 
int UTX_wrf_str (char *fnam, char *txt)
 
int UTX_tmp_file (char *fBuf, long *fSiz, char *fNam)
 
int MSG_get_1 (char *msg, int msgSiz, char *key, char *fmt,...)
 
int MSG_err_1 (char *key, char *fmt,...)
 
int MSG_pri_1 (char *key, char *fmt,...)
 
char * MSG_get_str (char *key)
 
void TX_Print (char *,...)
 ========================================================== More...
 
void TX_Error (char *,...)
 ========================================================== More...
 
void TX_Write (char *)
 ========================================================== More...
 

Function Documentation

void OS_Wait ( int  millisecs)

wait - milli-seconds (<millisecs> * 0.001 seconds)

wait - milli-seconds (<millisecs> * 0.001 seconds)

int OS_checkFilExist ( char *  filnam,
int  mode 
)
OS_checkFilExist check if File or Directory exists
mode = 0: display message sofort;
mode = 1: just fix returncode, no message
mode = 2: make Errormessage (TX_Error) if File does not exist
rc = 0 = Fehler; datei existiert NICHT.
rc = 1 = OK, Datei existiert.
OS_checkFilExist check if File or Directory exists
mode = 0: display message sofort;
mode = 1: just fix returncode, no message
mode = 2: make Errormessage (TX_Error) if File does not exist
rc = 0 = Fehler; datei existiert NICHT.
rc = 1 = OK, Datei existiert.
int OS_file_delete ( char *  fNam)

delete File; NO Wildcards !

delete File; NO Wildcards !

int OS_get_dialog ( )

check if zenity is installed. 1=yes, -1=no.

check if zenity is installed. 1=yes, -1=no.

check if zenity is installed

char* OS_get_ico_dir ( )

returns directory for icons (with closing '/') <gcad_dir_bin>icons/

returns directory for icons (with closing '/') <gcad_dir_bin>icons/

char* OS_get_tmp_dir ( )

returns tempDir (with closing '/') <gcad_dir_local>tmp/

returns tempDir (with closing '/') <gcad_dir_local>tmp/

int OS_file_sig_cre ( int  mode,
void *  data 
)
OS_file_sig_cre create signal-file
Input:
mode 0 clear file; data = signalfilename; must be done first
1 write data = string (null terminated) -> signalfile
2 write data = int (4 bytes) -> signalfile
99 cancelled by user (following read gives retCod -1)
-1 read data = string (null terminated) -> data (size of data !)
-2 read data = int (4 bytes) -> data
Output:
data text or int (mode);
RetCod: 0 OK, data valid
-1 cancelled by user
OS_file_sig_cre create signal-file
Input:
mode 0 clear file; data = signalfilename; must be done first
1 write data = string (null terminated) -> signalfile
2 write data = int (4 bytes) -> signalfile
99 cancelled by user (following read gives retCod -1)
-1 read data = string (null terminated) -> data (size of data !)
-2 read data = int (4 bytes) -> data
Output:
data text or int (mode);
RetCod: 0 OK, data valid
-1 cancelled by user
OS_file_sig_cre create signal-file
Input:
mode 0 clear file; data = signalfilename; must be done first
1 write data = string (null terminated) -> signalfile
2 write data = int (4 bytes) -> signalfile
99 cancelled by user (following read gives retCod -1)
-1 read data = string (null terminated) -> data (size of data !)
-2 read data = int (4 bytes) -> data
Output:
data text or int (mode);
RetCod: 0 OK, data valid
-1 cancelled by user
int OS_file_sig_wait ( int  mode,
void *  data 
)

RetCod: 0 OK, data valid -1 cancelled by user

RetCod: 0 OK, data valid -1 cancelled by user

RetCod: 0 OK, data valid -1 cancelled by user

long OS_FilSiz ( char *  filnam)

OS_FilSiz returns filesize in bytes

OS_FilSiz returns filesize in bytes

char* UTX_CleanCR ( char *  string)
UTX_CleanCR Delete Blanks, CR's and LF's at end of string
returns positon of stringterminator \0
int UTX_endDelChar ( char *  txtbuf,
char  chr 
)

UTX_endDelChar if last char of string == chr: remove it.

void UTX_str_file ( char *  txbuf,
long *  fSiz,
char *  fnam 
)

UTX_str_file read file -> string Used by UTX_tmp_file() fSiz must have filesize; see OS_FilSiz.

int UTX_wrf_str ( char *  fnam,
char *  txt 
)
UTX_wrf_str write string -> file
see UTF_wrf_line
int UTX_tmp_file ( char *  fBuf,
long *  fSiz,
char *  fNam 
)
int MSG_get_1 ( char *  msg,
int  msgSiz,
char *  key,
char *  fmt,
  ... 
)
int MSG_err_1 ( char *  key,
char *  fmt,
  ... 
)
int MSG_pri_1 ( char *  key,
char *  fmt,
  ... 
)
char* MSG_get_str ( char *  key)
void TX_Print ( char *  ,
  ... 
)

==========================================================

========================================================== formatiertes Rausschreiben; wie bei printf; mehr als 4 Parm's Problem?

void TX_Error ( char *  ,
  ... 
)

==========================================================

==========================================================

void TX_Write ( char *  )

==========================================================

========================================================== direkt rausschreiben.