3 /* ddt_remote - Stuff needed to get datadescs about remote hosts */
5 /* Authors: Olivier Aumage, Martin Quinson */
6 /* Copyright (C) 2003, 2004 the GRAS posse. */
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. */
11 #include "DataDesc/datadesc_private.h"
15 *** Table of all known architectures.
18 const gras_arch_desc_t gras_arches[gras_arch_count] = {
19 {"i386", 0, {1,2,4,4,8, 4,4, 4,8}}
22 const char *gras_datadesc_arch_name(int code) {
23 if (code < 0 || code > gras_arch_count)
24 return "[arch code out of bound]";
25 return gras_arches[code].name;
29 * gras_dd_convert_elm:
31 * Convert the element described by @type comming from architecture @r_arch.
32 * The data to be converted is stored in @src, and is to be stored in @dst.
33 * Both pointers may be the same location if no resizing is needed.
36 gras_dd_convert_elm(gras_datadesc_type_t *type,
38 void *src, void *dst) {
40 if (r_arch != GRAS_THISARCH)
49 * returns the ID of the architecture the process is running on
52 gras_arch_selfid(void) {