src/journal.c File Reference src/journal.c journal / log #include <stdio.h>#include <stdlib.h>#include <time.h>#include <string.h>#include <sys/time.h>#include "../include/fsm.h" Functions void fsm_journal_init (fsm_struct_journal *jj) 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 ? void fsm_journal_clear (fsm_struct_journal *jj, const char *file_source, const char *function_source, const char *string_value) void fsm_journal_push_front (fsm_struct_journal *jj, const char *file_source, const char *function_source, const char *string_value) long fsm_journal_pop_back (fsm_struct_journal *jj, const char *file_source, const char *function_source, const char *string_value) int fsm_journal_length (fsm_struct_journal jj) void fsm_journal_seek (fsm_struct_journal jj, long usec, const char *file_source, const char *function_source, const char *string_value) void fsm_journal_publish (fsm_struct_journal jj)
Detailed Description journal / log This file is part of Gem-graph.
Function Documentation
fsm_journal_clear() fsm_journal_clearjournal.c journal.cfsm_journal_clear void fsm_journal_clear (fsm_struct_journal * jj, const char * file_source, const char * function_source, const char * string_value) Date Author See also Parameters
return
fsm_journal_init() fsm_journal_initjournal.c journal.cfsm_journal_init void fsm_journal_init (fsm_struct_journal * jj) 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 time_t current_time = time(NULL); 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(&current_time)); Date Author See also Parameters
return
fsm_journal_length() fsm_journal_lengthjournal.c journal.cfsm_journal_length int fsm_journal_length (fsm_struct_journal jj) Date Author See also Parameters
return
fsm_journal_pop_back() fsm_journal_pop_backjournal.c journal.cfsm_journal_pop_back long fsm_journal_pop_back (fsm_struct_journal * jj, const char * file_source, const char * function_source, const char * string_value) Date Author See also Parameters
return
fsm_journal_publish() fsm_journal_publishjournal.c journal.cfsm_journal_publish void fsm_journal_publish (fsm_struct_journal jj) Date Author See also Parameters
return
fsm_journal_push_front() fsm_journal_push_frontjournal.c journal.cfsm_journal_push_front void fsm_journal_push_front (fsm_struct_journal * jj, const char * file_source, const char * function_source, const char * string_value) Date Author See also Parameters
return
fsm_journal_seek() fsm_journal_seekjournal.c journal.cfsm_journal_seek void fsm_journal_seek (fsm_struct_journal jj, long usec, const char * file_source, const char * function_source, const char * string_value) Date Author See also Parameters
return