223 lines
4.0 KiB
Groff
223 lines
4.0 KiB
Groff
.TH "src/journal.c" 3 "Version 0.1.0" "Gem-graph" \" -*- nroff -*-
|
|
.ad l
|
|
.nh
|
|
.SH NAME
|
|
src/journal.c \- journal / log
|
|
|
|
.SH SYNOPSIS
|
|
.br
|
|
.PP
|
|
\fC#include <stdio\&.h>\fP
|
|
.br
|
|
\fC#include <stdlib\&.h>\fP
|
|
.br
|
|
\fC#include <time\&.h>\fP
|
|
.br
|
|
\fC#include <string\&.h>\fP
|
|
.br
|
|
\fC#include <sys/time\&.h>\fP
|
|
.br
|
|
\fC#include '\&.\&./include/fsm\&.h'\fP
|
|
.br
|
|
|
|
.SS "Functions"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "void \fBfsm_journal_init\fP (\fBfsm_struct_journal\fP *jj)"
|
|
.br
|
|
.RI "2024-09-22 What types of events should be reported ? (fsm, widgets, \&.\&.\&. ) For what purpose ? What information must be collected and transmitted ? How do you name and classify this information ? How do you present it ? "
|
|
.ti -1c
|
|
.RI "void \fBfsm_journal_clear\fP (\fBfsm_struct_journal\fP *jj, const char *file_source, const char *function_source, const char *string_value)"
|
|
.br
|
|
.ti -1c
|
|
.RI "void \fBfsm_journal_push_front\fP (\fBfsm_struct_journal\fP *jj, const char *file_source, const char *function_source, const char *string_value)"
|
|
.br
|
|
.ti -1c
|
|
.RI "long \fBfsm_journal_pop_back\fP (\fBfsm_struct_journal\fP *jj, const char *file_source, const char *function_source, const char *string_value)"
|
|
.br
|
|
.ti -1c
|
|
.RI "int \fBfsm_journal_length\fP (\fBfsm_struct_journal\fP jj)"
|
|
.br
|
|
.ti -1c
|
|
.RI "void \fBfsm_journal_seek\fP (\fBfsm_struct_journal\fP jj, long usec, const char *file_source, const char *function_source, const char *string_value)"
|
|
.br
|
|
.ti -1c
|
|
.RI "void \fBfsm_journal_publish\fP (\fBfsm_struct_journal\fP jj)"
|
|
.br
|
|
.in -1c
|
|
.SH "Detailed Description"
|
|
.PP
|
|
journal / log
|
|
|
|
This file is part of Gem-graph\&.
|
|
.SH "Function Documentation"
|
|
.PP
|
|
.SS "void fsm_journal_clear (\fBfsm_struct_journal\fP * jj, const char * file_source, const char * function_source, const char * string_value)"
|
|
|
|
.PP
|
|
\fBDate\fP
|
|
.RS 4
|
|
|
|
.RE
|
|
.PP
|
|
\fBAuthor\fP
|
|
.RS 4
|
|
.RE
|
|
.PP
|
|
\fBSee also\fP
|
|
.RS 4
|
|
.PP
|
|
.RE
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fI\fP .RE
|
|
.PP
|
|
return
|
|
.SS "void fsm_journal_init (\fBfsm_struct_journal\fP * jj)"
|
|
|
|
.PP
|
|
2024-09-22 What types of events should be reported ? (fsm, widgets, \&.\&.\&. ) For what purpose ? What information must be collected and transmitted ? How do you name and classify this information ? How do you present it ? date clé (rank) fichier source fonction source +/- valeur
|
|
.br
|
|
|
|
.PP
|
|
.nf
|
|
time_t current_time = time(NULL);
|
|
|
|
.fi
|
|
.PP
|
|
Check if the time retrieval was successful if (current_time == ((time_t)-1)) printf('Error getting current time\&.\\n'); Convert to local time format and print printf(' Current timestamp: %ld %s\\n', current_time, message); printf(' Current time: %s', ctime(¤t_time));
|
|
.PP
|
|
\fBDate\fP
|
|
.RS 4
|
|
.RE
|
|
.PP
|
|
\fBAuthor\fP
|
|
.RS 4
|
|
.RE
|
|
.PP
|
|
\fBSee also\fP
|
|
.RS 4
|
|
.PP
|
|
.RE
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fI\fP .RE
|
|
.PP
|
|
return
|
|
.SS "int fsm_journal_length (\fBfsm_struct_journal\fP jj)"
|
|
|
|
.PP
|
|
\fBDate\fP
|
|
.RS 4
|
|
|
|
.RE
|
|
.PP
|
|
\fBAuthor\fP
|
|
.RS 4
|
|
.RE
|
|
.PP
|
|
\fBSee also\fP
|
|
.RS 4
|
|
.PP
|
|
.RE
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fI\fP .RE
|
|
.PP
|
|
return
|
|
.SS "long fsm_journal_pop_back (\fBfsm_struct_journal\fP * jj, const char * file_source, const char * function_source, const char * string_value)"
|
|
|
|
.PP
|
|
\fBDate\fP
|
|
.RS 4
|
|
|
|
.RE
|
|
.PP
|
|
\fBAuthor\fP
|
|
.RS 4
|
|
.RE
|
|
.PP
|
|
\fBSee also\fP
|
|
.RS 4
|
|
.PP
|
|
.RE
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fI\fP .RE
|
|
.PP
|
|
return
|
|
.SS "void fsm_journal_publish (\fBfsm_struct_journal\fP jj)"
|
|
|
|
.PP
|
|
\fBDate\fP
|
|
.RS 4
|
|
|
|
.RE
|
|
.PP
|
|
\fBAuthor\fP
|
|
.RS 4
|
|
.RE
|
|
.PP
|
|
\fBSee also\fP
|
|
.RS 4
|
|
.PP
|
|
.RE
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fI\fP .RE
|
|
.PP
|
|
return
|
|
.SS "void fsm_journal_push_front (\fBfsm_struct_journal\fP * jj, const char * file_source, const char * function_source, const char * string_value)"
|
|
|
|
.PP
|
|
\fBDate\fP
|
|
.RS 4
|
|
|
|
.RE
|
|
.PP
|
|
\fBAuthor\fP
|
|
.RS 4
|
|
.RE
|
|
.PP
|
|
\fBSee also\fP
|
|
.RS 4
|
|
.PP
|
|
.RE
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fI\fP .RE
|
|
.PP
|
|
return
|
|
.SS "void fsm_journal_seek (\fBfsm_struct_journal\fP jj, long usec, const char * file_source, const char * function_source, const char * string_value)"
|
|
|
|
.PP
|
|
\fBDate\fP
|
|
.RS 4
|
|
|
|
.RE
|
|
.PP
|
|
\fBAuthor\fP
|
|
.RS 4
|
|
.RE
|
|
.PP
|
|
\fBSee also\fP
|
|
.RS 4
|
|
.PP
|
|
.RE
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fI\fP .RE
|
|
.PP
|
|
return
|
|
.SH "Author"
|
|
.PP
|
|
Generated automatically by Doxygen for Gem-graph from the source code\&.
|