X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/78c37d1780d1243aec405e7f38751e0aa5037c38..cf57fb58889894670e2594d2e3b6a213d8fd6089:/examples/gras/mmrpc/mmrpc_common.c diff --git a/examples/gras/mmrpc/mmrpc_common.c b/examples/gras/mmrpc/mmrpc_common.c index 41b31637e2..a4884702ef 100644 --- a/examples/gras/mmrpc/mmrpc_common.c +++ b/examples/gras/mmrpc/mmrpc_common.c @@ -1,27 +1,26 @@ -/* $Id$ */ - /* GridRPC - Fake Grid RPC thingy doing matrix multiplications (as expected)*/ -/* Copyright (c) 2005 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2006, 2007, 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 "mmrpc.h" -XBT_LOG_NEW_DEFAULT_CATEGORY(MatMult,"Messages specific to this example"); +XBT_LOG_NEW_DEFAULT_CATEGORY(MatMult, "Messages specific to this example"); /* register messages which may be sent and their payload (common to client and server) */ -void mmrpc_register_messages(void) { +void mmrpc_register_messages(void) +{ gras_datadesc_type_t matrix_type, request_type; - matrix_type=gras_datadesc_matrix(gras_datadesc_by_name("double"), - NULL); - request_type=gras_datadesc_array_fixed("s_matrix_t(double)[2]",matrix_type,2); - + matrix_type = + gras_datadesc_matrix(gras_datadesc_by_name("double"), NULL); + request_type = + gras_datadesc_array_fixed("s_matrix_t(double)[2]", matrix_type, 2); + gras_msgtype_declare("answer", matrix_type); gras_msgtype_declare("request", request_type); } - -