Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ac272a0b967df4e3e9009c30d6c91027febfb160
[simgrid.git] / examples / gras / spawn / spawn_common.c
1 /* $Id$ */
2
3 /* spawn - demo of the gras_agent_spawn function                            */
4
5 /* Copyright (c) 2007 Martin Quinson. All rights reserved.                  */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #include "spawn.h"
11 XBT_LOG_NEW_DEFAULT_CATEGORY(Spawn, "Messages specific to this example");
12
13 /* register messages which may be sent (common to client and server) */
14 void spawn_register_messages(void)
15 {
16   gras_msgtype_declare("ping", gras_datadesc_by_name("int"));
17   gras_msgtype_declare("pong", gras_datadesc_by_name("int"));
18 }