/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2009,2010 Free Software Foundation, Inc.
*
* 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.
*
* GRUB 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 GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
GRUB_MOD_LICENSE ("GPLv3+");
struct abstract_terminal
{
const char *name;
};
static grub_err_t
struct abstract_terminal **disabled,
struct grub_term_autoload *autoloads,
const char *active_str,
const char *available_str)
{
int i;
if (argc == 0)
{
grub_printf ("\n");
/* This is quadratic but we don't expect mode than 30 terminal
modules ever. */
{
break;
if (!term)
break;
if (!term)
}
grub_printf ("\n");
return GRUB_ERR_NONE;
}
i = 0;
i++;
if (i == argc)
for (; i < argc; i++)
{
int again = 0;
while (1)
{
break;
if (term == 0)
break;
if (term)
break;
if (again)
args[i]);
{
if (mod)
grub_dl_ref (mod);
break;
}
if (!aut)
args[i]);
again = 1;
}
}
{
for (i = 1; i < argc; i++)
{
break;
if (term)
{
return grub_errno;
}
}
return GRUB_ERR_NONE;
}
{
for (i = 1; i < argc; i++)
{
break;
if (term)
{
return grub_error (GRUB_ERR_BAD_ARGUMENT,
"can't remove the last terminal");
}
}
return GRUB_ERR_NONE;
}
for (i = 0; i < argc; i++)
{
break;
if (term)
{
return grub_errno;
}
}
{
{
for (i = 0; i < argc; i++)
break;
if (i == argc)
{
return grub_error (GRUB_ERR_BAD_ARGUMENT,
"can't remove the last terminal");
}
}
}
return GRUB_ERR_NONE;
}
static grub_err_t
{
(struct abstract_terminal **) (void *) &grub_term_inputs,
(struct abstract_terminal **) (void *) &grub_term_inputs_disabled,
N_ ("Active input terminals:"),
N_ ("Available input terminals:"));
}
static grub_err_t
{
(struct abstract_terminal **) (void *) &grub_term_outputs,
(struct abstract_terminal **) (void *) &grub_term_outputs_disabled,
N_ ("Active output terminals:"),
N_ ("Available output terminals:"));
}
{
N_("[--append|--remove] "
"[TERMINAL1] [TERMINAL2] ..."),
N_("List or select an input terminal."));
N_("[--append|--remove] "
"[TERMINAL1] [TERMINAL2] ..."),
N_("List or select an output terminal."));
}
{
}