2 |
/* |
/* |
3 |
* PUPA -- Preliminary Universal Programming Architecture for GRUB |
* PUPA -- Preliminary Universal Programming Architecture for GRUB |
4 |
* Copyright (C) 2002,2003 Yoshinori K. Okuji <okuji@enbug.org> |
* Copyright (C) 2002,2003 Yoshinori K. Okuji <okuji@enbug.org> |
5 |
|
* Copyright (C) 2003 Marco Gerards <metgerards@student.han.nl>. |
6 |
* |
* |
7 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
8 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
24 |
|
|
25 |
#include <pupa/setjmp.h> |
#include <pupa/setjmp.h> |
26 |
#include <pupa/symbol.h> |
#include <pupa/symbol.h> |
27 |
|
#include <pupa/err.h> |
28 |
|
|
29 |
/* The maximum size of a command-line. */ |
/* The maximum size of a command-line. */ |
30 |
#define PUPA_MAX_CMDLINE 1600 |
#define PUPA_MAX_CMDLINE 1600 |
127 |
const char *description); |
const char *description); |
128 |
void EXPORT_FUNC(pupa_unregister_command) (const char *name); |
void EXPORT_FUNC(pupa_unregister_command) (const char *name); |
129 |
pupa_command_t pupa_command_find (char *cmdline); |
pupa_command_t pupa_command_find (char *cmdline); |
130 |
|
pupa_err_t pupa_set_history (int newsize); |
131 |
|
int pupa_iterate_commands (int (*iterate) (pupa_command_t)); |
132 |
int pupa_command_execute (char *cmdline); |
int pupa_command_execute (char *cmdline); |
133 |
void pupa_command_init (void); |
void pupa_command_init (void); |
134 |
void pupa_normal_init_page (void); |
void pupa_normal_init_page (void); |