2024-10-19 16:05:49 +02:00
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns= "http://docbook.org/ns/docbook" version= "5.0" xmlns:xlink= "http://www.w3.org/1999/xlink" xml:id= "_journal_8c" xml:lang= "en-US" >
<title > src/journal.c File Reference</title>
<indexterm > <primary > src/journal.c</primary> </indexterm>
<para >
<para > journal / log </para>
</para>
2024-10-25 22:12:02 +02:00
<programlisting linenumbering= "unnumbered" > #include < stdio.h> <?linebreak?> #include < stdlib.h> <?linebreak?> #include < time.h> <?linebreak?> #include < string.h> <?linebreak?> #include < sys/time.h> <?linebreak?> #include " ../include/fsm.h" <?linebreak?> </programlisting> Include dependency graph for journal.c:<para >
<informalfigure >
<mediaobject >
<imageobject >
2024-10-27 04:18:58 +01:00
<imagedata width= "50%" align= "center" valign= "middle" scalefit= "0" fileref= "../../d3/d02/journal_8c__incl.svg" > </imagedata>
2024-10-25 22:12:02 +02:00
</imageobject>
</mediaobject>
</informalfigure>
</para>
<simplesect >
2024-10-19 16:05:49 +02:00
<title > Functions </title>
<itemizedlist >
2024-10-27 04:18:58 +01:00
<listitem > <para > void <link linkend= "_journal_8c_1acc1d20291e2f32ff5e7af4c95629e28e" > fsm_init_log</link> (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> *jj)</para>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > init the journal </para>
2024-10-19 16:05:49 +02:00
</listitem>
2024-10-27 04:18:58 +01:00
<listitem > <para > void <link linkend= "_journal_8c_1af84a8278ff74e2a6f652f8a6d8dacff7" > fsm__clear_log</link> (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> *jj, const char *file_source, const char *function_source, const char *string_value)</para>
2024-10-20 01:05:12 +02:00
<para > usefulness ? (systematic ^c) </para>
2024-10-19 16:05:49 +02:00
</listitem>
2024-10-27 04:18:58 +01:00
<listitem > <para > void <link linkend= "_journal_8c_1adfe571927cb823d409f59d1c8678e640" > fsm_add_log</link> (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> *jj, const char *file_source, const char *function_source, const char *string_value)</para>
2024-10-20 01:05:12 +02:00
<para > add an event </para>
2024-10-19 16:05:49 +02:00
</listitem>
2024-10-27 04:18:58 +01:00
<listitem > <para > long <link linkend= "_journal_8c_1a8a005b11601891a81e534b84aab336ff" > fsm_pop_back_log</link> (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> *jj, const char *file_source, const char *function_source, const char *string_value)</para>
2024-10-20 01:05:12 +02:00
<para > remove an event </para>
2024-10-19 16:05:49 +02:00
</listitem>
2024-10-27 04:18:58 +01:00
<listitem > <para > int <link linkend= "_journal_8c_1a878d12a6fded3d172b59fdfc28dcca85" > fsm_length_log</link> (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> jj)</para>
2024-10-20 01:05:12 +02:00
<para > get journal_length </para>
2024-10-19 16:05:49 +02:00
</listitem>
2024-10-27 04:18:58 +01:00
<listitem > <para > void <link linkend= "_journal_8c_1a2a991ccb47f1e8ed7eaec22bb42e5d7a" > fsm_seek_log</link> (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> jj, long usec, const char *file_source, const char *function_source, const char *string_value)</para>
2024-10-20 01:05:12 +02:00
<para > seek for an event </para>
2024-10-19 16:05:49 +02:00
</listitem>
2024-10-27 04:18:58 +01:00
<listitem > <para > void <link linkend= "_journal_8c_1a7d5e93d1dd1368afb4a46c8c0b0cb506" > fsm_publish_log</link> (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> jj)</para>
2024-10-20 01:05:12 +02:00
<para > publish all the logs today just print in the console TODO > in a file </para>
2024-10-19 16:05:49 +02:00
</listitem>
</itemizedlist>
</simplesect>
<section >
<title > Detailed Description</title>
<para > journal / log </para>
2024-10-20 01:05:12 +02:00
<para > This file is part of Gem-graph. The journal stores chronologically the events during a session run (rules exec, mainly)</para>
<para > What types of events should be reported ? (fsm, widgets, ... ) For what purpose ? What information must be collected and transmitted ? How to name and classify this information ? How to present it ?</para>
<para > date key (rank) source file source function +/- value</para>
<para > (notes) 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)); </para>
2024-10-19 16:05:49 +02:00
</section>
<section >
<title > Function Documentation</title>
2024-10-27 04:18:58 +01:00
<anchor xml:id= "_journal_8c_1af84a8278ff74e2a6f652f8a6d8dacff7" /> <section >
<title > fsm__clear_log()</title>
<indexterm > <primary > fsm__clear_log</primary> <secondary > journal.c</secondary> </indexterm>
<indexterm > <primary > journal.c</primary> <secondary > fsm__clear_log</secondary> </indexterm>
<para > <computeroutput > void fsm__clear_log (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> * jj, const char * file_source, const char * function_source, const char * string_value)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > usefulness ? (systematic ^c) </para>
</para>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > <formalpara > <title > Since</title>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > 2024-09</para>
2024-10-19 16:05:49 +02:00
</formalpara>
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > *jj</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *file_source</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *function_source</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *string_value</entry> <entry >
<para > </para>
</entry>
2024-10-19 16:05:49 +02:00
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
</section>
2024-10-27 04:18:58 +01:00
<anchor xml:id= "_journal_8c_1adfe571927cb823d409f59d1c8678e640" /> <section >
<title > fsm_add_log()</title>
<indexterm > <primary > fsm_add_log</primary> <secondary > journal.c</secondary> </indexterm>
<indexterm > <primary > journal.c</primary> <secondary > fsm_add_log</secondary> </indexterm>
<para > <computeroutput > void fsm_add_log (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> * jj, const char * file_source, const char * function_source, const char * string_value)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-27 04:18:58 +01:00
<para > add an event </para>
2024-10-19 16:05:49 +02:00
</para>
2024-10-20 01:05:12 +02:00
<para > <formalpara > <title > Since</title>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > 2024-09</para>
2024-10-19 16:05:49 +02:00
</formalpara>
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > *jj</entry> <entry >
<para > </para>
2024-10-27 04:18:58 +01:00
</entry>
</row>
<row >
<entry > *file_source</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *function_source</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *string_value</entry> <entry >
<para > </para>
2024-10-20 01:05:12 +02:00
</entry>
2024-10-19 16:05:49 +02:00
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
2024-10-27 04:18:58 +01:00
Here is the caller graph for this function:<para >
<informalfigure >
<mediaobject >
<imageobject >
<imagedata width= "50%" align= "center" valign= "middle" scalefit= "0" fileref= "../../d3/d0c/journal_8c_adfe571927cb823d409f59d1c8678e640_icgraph.svg" > </imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
2024-10-19 16:05:49 +02:00
</section>
2024-10-27 04:18:58 +01:00
<anchor xml:id= "_journal_8c_1acc1d20291e2f32ff5e7af4c95629e28e" /> <section >
<title > fsm_init_log()</title>
<indexterm > <primary > fsm_init_log</primary> <secondary > journal.c</secondary> </indexterm>
<indexterm > <primary > journal.c</primary> <secondary > fsm_init_log</secondary> </indexterm>
<para > <computeroutput > void fsm_init_log (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> * jj)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-27 04:18:58 +01:00
<para > init the journal </para>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > <formalpara > <title > Since</title>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > 2024-09</para>
2024-10-19 16:05:49 +02:00
</formalpara>
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > *jj</entry> <entry >
<para > </para>
</entry>
2024-10-19 16:05:49 +02:00
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-27 04:18:58 +01:00
</para>
Here is the caller graph for this function:<para >
<informalfigure >
<mediaobject >
<imageobject >
<imagedata width= "50%" align= "center" valign= "middle" scalefit= "0" fileref= "../../d3/d0c/journal_8c_acc1d20291e2f32ff5e7af4c95629e28e_icgraph.svg" > </imagedata>
</imageobject>
</mediaobject>
</informalfigure>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
</section>
2024-10-27 04:18:58 +01:00
<anchor xml:id= "_journal_8c_1a878d12a6fded3d172b59fdfc28dcca85" /> <section >
<title > fsm_length_log()</title>
<indexterm > <primary > fsm_length_log</primary> <secondary > journal.c</secondary> </indexterm>
<indexterm > <primary > journal.c</primary> <secondary > fsm_length_log</secondary> </indexterm>
<para > <computeroutput > int fsm_length_log (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> jj)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-27 04:18:58 +01:00
<para > get journal_length </para>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > <formalpara > <title > Since</title>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > 2024-09</para>
2024-10-19 16:05:49 +02:00
</formalpara>
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > *jj</entry> <entry >
<para > </para>
</entry>
2024-10-19 16:05:49 +02:00
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-27 04:18:58 +01:00
<formalpara > <title > Returns</title>
<para > journal length </para>
</formalpara>
</para>
2024-10-19 16:05:49 +02:00
</section>
2024-10-27 04:18:58 +01:00
<anchor xml:id= "_journal_8c_1a8a005b11601891a81e534b84aab336ff" /> <section >
<title > fsm_pop_back_log()</title>
<indexterm > <primary > fsm_pop_back_log</primary> <secondary > journal.c</secondary> </indexterm>
<indexterm > <primary > journal.c</primary> <secondary > fsm_pop_back_log</secondary> </indexterm>
<para > <computeroutput > long fsm_pop_back_log (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> * jj, const char * file_source, const char * function_source, const char * string_value)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-27 04:18:58 +01:00
<para > remove an event </para>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > <formalpara > <title > Since</title>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > 2024-09</para>
2024-10-19 16:05:49 +02:00
</formalpara>
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > *jj</entry> <entry >
<para > </para>
2024-10-27 04:18:58 +01:00
</entry>
</row>
<row >
<entry > *file_source</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *function_source</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *string_value</entry> <entry >
<para > </para>
2024-10-20 01:05:12 +02:00
</entry>
2024-10-19 16:05:49 +02:00
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
</section>
2024-10-27 04:18:58 +01:00
<anchor xml:id= "_journal_8c_1a7d5e93d1dd1368afb4a46c8c0b0cb506" /> <section >
<title > fsm_publish_log()</title>
<indexterm > <primary > fsm_publish_log</primary> <secondary > journal.c</secondary> </indexterm>
<indexterm > <primary > journal.c</primary> <secondary > fsm_publish_log</secondary> </indexterm>
<para > <computeroutput > void fsm_publish_log (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> jj)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-27 04:18:58 +01:00
<para > publish all the logs today just print in the console TODO > in a file </para>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > <formalpara > <title > Since</title>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > 2024-09</para>
2024-10-19 16:05:49 +02:00
</formalpara>
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > *jj</entry> <entry >
<para > </para>
</entry>
2024-10-19 16:05:49 +02:00
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
2024-10-27 04:18:58 +01:00
Here is the caller graph for this function:<para >
<informalfigure >
<mediaobject >
<imageobject >
<imagedata width= "50%" align= "center" valign= "middle" scalefit= "0" fileref= "../../d3/d0c/journal_8c_a7d5e93d1dd1368afb4a46c8c0b0cb506_icgraph.svg" > </imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
2024-10-19 16:05:49 +02:00
</section>
2024-10-27 04:18:58 +01:00
<anchor xml:id= "_journal_8c_1a2a991ccb47f1e8ed7eaec22bb42e5d7a" /> <section >
<title > fsm_seek_log()</title>
<indexterm > <primary > fsm_seek_log</primary> <secondary > journal.c</secondary> </indexterm>
<indexterm > <primary > journal.c</primary> <secondary > fsm_seek_log</secondary> </indexterm>
<para > <computeroutput > void fsm_seek_log (<link linkend= "_structfsm__struct__journal" > fsm_struct_journal</link> jj, long usec, const char * file_source, const char * function_source, const char * string_value)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > seek for an event </para>
</para>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > <formalpara > <title > Since</title>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > 2024-09</para>
2024-10-19 16:05:49 +02:00
</formalpara>
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > *jj</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > usec</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *file_source</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *function_source</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *string_value</entry> <entry >
<para > </para>
</entry>
2024-10-19 16:05:49 +02:00
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
</section>
</section>
</section>