|
funkalicious 0.1
|
00001 /* 00002 ** displ.c 00003 ** 00004 ** Made by (Johnny Q. Hacker) 00005 ** Login <solarion@nathan> 00006 ** 00007 00008 Copyright (C) 2009 Joseph Pingenot 00009 00010 This program is free software: you can redistribute it and/or modify 00011 it under the terms of the GNU Affero General Public License as published by 00012 the Free Software Foundation, either version 3 of the License, or 00013 (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU Affero General Public License for more details. 00019 00020 You should have received a copy of the GNU Affero General Public License 00021 along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 00023 ** Started on Sun Dec 6 19:11:20 2009 Johnny Q. Hacker 00024 ** Last update Sun May 12 01:17:25 2002 Speed Blue 00025 */ 00026 00027 #include <gio/gio.h> 00028 #include <libdotcode/displ.h> 00029 #include <libdotcode/grid1.h> 00030 #include <libdotcode/matdb-dotcode.h> 00031 00032 struct dotcode_grid1* dotcode_displ_get_grid1(GFile* f, GError** e) { 00033 GFile* gridfile = g_file_get_child(f, "grid"); 00034 return dotcode_grid1_get_from_gfile(gridfile, e); 00035 } 00036 00037 struct matdb* dotcode_displ_get_matdb(GFile* f, GError** e) { 00038 GFile* matdbfile = g_file_get_child(f, ".matdb"); 00039 return read_matdb_dotcode_gio(matdbfile, e); 00040 }