#include <stdio.h>
#include <string.h>
#include "scdata.h"
#include "scrunner_msg.h"
#include "sccommon.h"
#include "wlcstdc.h"
Include dependency graph for scdata_l.h:
Enumerations | |
enum | SCr_proc_type { SCr_proc_data, SCr_proc_error, SCr_proc_user } |
enum | SCr_user_opt { SCr_user_trans_start, SCr_user_trans_end, SCr_user_sys_off, SCr_user_sys_on } |
enum | SCr_wl_state { SCr_wl_state_err = -1, SCr_wl_state_new = 0, SCr_wl_state_old = 1 } |
Functions | |
int | SCr_new_wl (const char *strdate) |
char * | SCr_user_to_str (int type) |
void | SCr_log_proc (int proc, int codeA, int codeB, const char *strdate) |
void | SCr_log_error (int type, int code, const char *strdate) |
int | SCr_log_data (const struct SCs_data *unloged, const char *strdate) |
Variables | |
int | SCr_not_loged |
int | SCr_max_not_loged |
const char * | SCr_proclog_dir |
int | SCr_proc_log_on |
enum SCr_proc_type |
enum SCr_user_opt |
enum SCr_wl_state |
int SCr_log_data | ( | const struct SCs_data * | unloged, | |
const char * | strdate | |||
) |
Logs a data record from SCslave.
unloged | data record | |
strdate | date in ISO format |
void SCr_log_error | ( | int | type, | |
int | code, | |||
const char * | strdate | |||
) |
Logs an error.
type | error type | |
code | error code | |
strdate | current date in ISO format |
void SCr_log_proc | ( | int | proc, | |
int | codeA, | |||
int | codeB, | |||
const char * | strdate | |||
) |
Logs an innternal SCrunners process
proc | process type from SCr_proc_type | |
codeA | firts process code | |
codeB | scunde process code | |
strdate | current date in ISO format |
int SCr_new_wl | ( | const char * | strdate | ) |
Checks the state of the current worklog file.
strdate | current date in ISO format |
char* SCr_user_to_str | ( | int | type | ) |
Converts the user interaction code to its name.
type | user interaction code from SCr_usr_opt |
Maximum number of unsuccesfull data logs after wich a critilac error is generated
int SCr_not_loged |
0 if last SCslave data record was loged succesfully; if not then the number unsuccesfull data logs
int SCr_proc_log_on |
1 if proclog files should be generated; 0 if not
const char* SCr_proclog_dir |
Proclogs directory path