/* vi: set ts=2: * * $Id: gm.c,v 1.1 2001/02/17 15:04:06 enno Exp $ * Eressea PB(E)M host Copyright (C) 1998-2000 * Christian Schlittchen (corwin@amber.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de) * Henning Peters (faroul@beyond.kn-bremen.de) * Enno Rehling (enno@eressea-pbem.de) * Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de) * * This program may not be used, modified or distributed without * prior permission by the authors of Eressea. */ #include #include #include "gm.h" /* kernel includes */ #include /* util includes */ #include static void write_gm(const attrib * a, FILE * F) { write_plane_reference((plane*)a->data.v, F); } static int read_gm(attrib * a, FILE * F) { read_plane_reference((plane**)&a->data.v, F); return 1; } attrib_type at_gm = { "gm", NULL, NULL, NULL, write_gm, read_gm, }; attrib * make_gm(const struct plane * pl) { attrib * a = a_new(&at_gm); a->data.v = (void*)pl; return a; } void init_gm(void) { at_register(&at_gm); }