/* device.h - device manager */ /* * VAS_EBOOT -- GRand Unified Bootloader * Copyright (C) 2002,2005,2007 Free Software Foundation, Inc. * * VAS_EBOOT is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VAS_EBOOT is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with VAS_EBOOT. If not, see . */ #ifndef VAS_EBOOT_DEVICE_HEADER #define VAS_EBOOT_DEVICE_HEADER 1 #include #include struct VasEBoot_disk; struct VasEBoot_net; struct VasEBoot_device { struct VasEBoot_disk *disk; struct VasEBoot_net *net; }; typedef struct VasEBoot_device *VasEBoot_device_t; typedef int (*VasEBoot_device_iterate_hook_t) (const char *name, void *data); VasEBoot_device_t EXPORT_FUNC(VasEBoot_device_open) (const char *name); VasEBoot_err_t EXPORT_FUNC(VasEBoot_device_close) (VasEBoot_device_t device); int EXPORT_FUNC(VasEBoot_device_iterate) (VasEBoot_device_iterate_hook_t hook, void *hook_data); #endif /* ! VAS_EBOOT_DEVICE_HEADER */