a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski/*
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * GRUB -- GRand Unified Bootloader
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * Copyright (c) 2013 Joyent, Inc. All rights reserved.
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski *
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * This program is free software; you can redistribute it and/or modify
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * it under the terms of the GNU General Public License as published by
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * the Free Software Foundation; either version 2 of the License, or
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * (at your option) any later version.
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski *
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * This program is distributed in the hope that it will be useful,
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * but WITHOUT ANY WARRANTY; without even the implied warranty of
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * GNU General Public License for more details.
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski *
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * You should have received a copy of the GNU General Public License
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * along with this program; if not, write to the Free Software
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski */
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski#ifndef _GRUB_EXPAND_H
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski#define _GRUB_EXPAND_H
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski#define EV_NAMELEN 32
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowskiextern void init_variables(void);
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowskiextern int set_variable(const char *, const char *);
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowskiextern const char *get_variable(const char *);
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowskiextern int expand_string(const char *, char *, unsigned int);
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowskiextern void dump_variables(void);
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski
a5602e1bdcf9570fa24684b54cf57a3f22e05ae1Keith M Wesolowski#endif