<hr>
- \don'tinclude gras/ping/ping_common.c
+ \dontinclude gras/ping/ping_common.c
\section GRAS_ex_ping_common 1) Common code to the client and the server
The module header <tt>ping.h</tt> reads:
- \don'tinclude gras/ping/ping.h
+ \dontinclude gras/ping/ping.h
\skip include
\until argv
\until argv
(to exchange more complicated types, see \ref GRAS_dd or
\ref GRAS_ex_mmrpc for an example).
- \don'tinclude gras/ping/ping_common.c
+ \dontinclude gras/ping/ping_common.c
\skip register_messages
\until }
struct definition so that they can be handled properly in GRAS (see the
\ref GRAS_tut_tour_globals for more info).
- \don'tinclude gras/ping/ping_server.c
+ \dontinclude gras/ping/ping_server.c
\skip typedef struct
\until }
This function is quite straightforward, and the inlined comments should
be enough to understand it.
- \don'tinclude gras/ping/ping_client.c
+ \dontinclude gras/ping/ping_client.c
\skip client
\until end_of_client
message to the next node. That is why we have to store all variable in a
global, as explained in the \ref GRAS_globals section.
- \don'tinclude examples/gras/mutual_exclusion/simple_token/simple_token.c
+ \dontinclude examples/gras/mutual_exclusion/simple_token/simple_token.c
\skip typedef
\until }
This loads the gras header and declare the function's prototypes as well
as the matrix size.
- \don'tinclude gras/mmrpc/mmrpc.h
+ \dontinclude gras/mmrpc/mmrpc.h
\skip include
\until argv
\until argv
\ref XBT_LOG_NEW_DEFAULT_CATEGORY here and
\ref XBT_LOG_EXTERNAL_DEFAULT_CATEGORY in mmrpc_client.c and mmrpc_server.c.
- \don'tinclude gras/mmrpc/mmrpc_common.c
+ \dontinclude gras/mmrpc/mmrpc_common.c
\skip include
\until XBT_LOG
\ref XBT_DEFINE_TYPE symbols don't get included here. Likewise, we use
\ref XBT_LOG_EXTERNAL_DEFAULT_CATEGORY to get the log category in here.
- \don'tinclude gras/mmrpc/mmrpc_server.c
+ \dontinclude gras/mmrpc/mmrpc_server.c
\skip define
\until XBT_LOG
datatype parsing and log categories do work even if we are using several
files.
- \don'tinclude gras/mmrpc/mmrpc_client.c
+ \dontinclude gras/mmrpc/mmrpc_client.c
\skip define
\until XBT_LOG
This function is quite straightforward, and the inlined comments should
be enough to understand it.
- \don'tinclude gras/mmrpc/mmrpc_client.c
+ \dontinclude gras/mmrpc/mmrpc_client.c
\skip argv
\until end_of_client
- \ref GRAS_ex_timer_repeat
- \ref GRAS_ex_timer_main
- \don'tinclude timer.c
+ \dontinclude timer.c
\section GRAS_ex_timer_decl 1. Declarations and headers
\skip include