Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove gras from the main documentation
[simgrid.git] / examples / gras / ping / ping_common.c
1 /* ping - ping/pong demo of GRAS features                                   */
2
3 /* Copyright (c) 2006, 2009, 2010. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #include "ping.h"
10 XBT_LOG_NEW_DEFAULT_CATEGORY(Ping, "Messages specific to this example");
11
12 /* register messages which may be sent (common to client and server) */
13 void ping_register_messages(void)
14 {
15   gras_msgtype_declare("ping", xbt_datadesc_by_name("int"));
16   gras_msgtype_declare("pong", xbt_datadesc_by_name("int"));
17   XBT_INFO("Messages registered");
18 }