Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
17ca99a3b5d2175d4cd3cf62c3bc004dab7269dd
[simgrid.git] / examples / gras / mmrpc / mmrpc_common.c
1 /* GridRPC - Fake Grid RPC thingy doing matrix multiplications (as expected)*/
2
3 /* Copyright (c) 2005 Martin Quinson. All rights reserved.                  */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #include "mmrpc.h"
9
10 XBT_LOG_NEW_DEFAULT_CATEGORY(MatMult, "Messages specific to this example");
11
12 /* register messages which may be sent and their payload
13    (common to client and server) */
14 void mmrpc_register_messages(void)
15 {
16   gras_datadesc_type_t matrix_type, request_type;
17
18   matrix_type = gras_datadesc_matrix(gras_datadesc_by_name("double"), NULL);
19   request_type =
20     gras_datadesc_array_fixed("s_matrix_t(double)[2]", matrix_type, 2);
21
22   gras_msgtype_declare("answer", matrix_type);
23   gras_msgtype_declare("request", request_type);
24 }