Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Messaging]
[simgrid.git] / src / gras / DataDesc / ddt_convert.c
1 /* $Id$ */
2
3 /* ddt_remote - Stuff needed to get datadescs about remote hosts            */
4
5 /* Authors: Olivier Aumage, Martin Quinson                                  */
6 /* Copyright (C) 2003, 2004 the GRAS posse.                                 */
7
8 /* This program is free software; you can redistribute it and/or modify it
9    under the terms of the license (GNU LGPL) which comes with this package. */
10
11 #include "DataDesc/datadesc_private.h"
12
13
14 /***
15  *** Table of all known architectures. 
16  ***/
17
18 const gras_arch_sizes_t gras_arch_sizes[gras_arch_count] = {
19   {"i386",   0,   {1,2,4,4,8,   4,4,   4,8}}
20 };
21
22
23 /**
24  * gras_dd_convert_elm:
25  *
26  * Convert the element described by @type comming from architecture @r_arch.
27  * The data to be converted is stored in @src, and is to be stored in @dst.
28  * Both pointers may be the same location if no resizing is needed.
29  */
30 gras_error_t
31 gras_dd_convert_elm(gras_datadesc_type_t *type,
32                     int r_arch, 
33                     void *src, void *dst) {
34
35   if (r_arch != GRAS_THISARCH) 
36     RAISE_UNIMPLEMENTED;
37
38   return no_error;
39 }
40
41 /**
42  * gras_arch_selfid:
43  *
44  * returns the ID of the architecture the process is running on
45  */
46 int
47 gras_arch_selfid(void) {
48   return GRAS_THISARCH;
49 }