/* * VAS_EBOOT -- GRand Unified Bootloader * Copyright (C) 2009 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_PARTTOOL_HEADER #define VAS_EBOOT_PARTTOOL_HEADER 1 struct VasEBoot_parttool_argdesc { const char *name; const char *desc; enum {VAS_EBOOT_PARTTOOL_ARG_END, VAS_EBOOT_PARTTOOL_ARG_BOOL, VAS_EBOOT_PARTTOOL_ARG_VAL} type; }; struct VasEBoot_parttool_args { int set; union { int b; char *str; }; }; typedef VasEBoot_err_t (*VasEBoot_parttool_function_t) (const VasEBoot_device_t dev, const struct VasEBoot_parttool_args *args); struct VasEBoot_parttool { struct VasEBoot_parttool *next; char *name; int handle; int nargs; struct VasEBoot_parttool_argdesc *args; VasEBoot_parttool_function_t func; }; int VasEBoot_parttool_register(const char *part_name, const VasEBoot_parttool_function_t func, const struct VasEBoot_parttool_argdesc *args); void VasEBoot_parttool_unregister (int handle); #endif /* ! VAS_EBOOT_PARTTOOL_HEADER*/