Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move datadesc and TCP sockets from GRAS to XBT.
[simgrid.git] / examples / gras / ping / ping_common.c
index eeb095c..f0b6e49 100644 (file)
@@ -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");
 }
-