X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/12538c6ab1bc03405ac74e6b2995ba1b4ee29bfa..3472d37b8ae12bc794f7094dc72671677b1b68f9:/examples/gras/ping/ping_common.c diff --git a/examples/gras/ping/ping_common.c b/examples/gras/ping/ping_common.c index eeb095c596..f0b6e49edf 100644 --- a/examples/gras/ping/ping_common.c +++ b/examples/gras/ping/ping_common.c @@ -1,19 +1,18 @@ -/* $Id$ */ - /* ping - ping/pong demo of GRAS features */ -/* Copyright (c) 2003, 2004, 2005 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2006, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "ping.h" -XBT_LOG_NEW_DEFAULT_CATEGORY(Ping,"Messages specific to this example"); +XBT_LOG_NEW_DEFAULT_CATEGORY(Ping, "Messages specific to this example"); /* register messages which may be sent (common to client and server) */ -void ping_register_messages(void) { - gras_msgtype_declare("ping", gras_datadesc_by_name("int")); - gras_msgtype_declare("pong", gras_datadesc_by_name("int")); - INFO0("Messages registered"); +void ping_register_messages(void) +{ + gras_msgtype_declare("ping", xbt_datadesc_by_name("int")); + gras_msgtype_declare("pong", xbt_datadesc_by_name("int")); + XBT_INFO("Messages registered"); } -