1 |
/* |
/* |
2 |
* PUPA -- Preliminary Universal Programming Architecture for GRUB |
* PUPA -- Preliminary Universal Programming Architecture for GRUB |
3 |
* Copyright (C) 2003 Yoshinori K. Okuji <okuji@enbug.org> |
* Copyright (C) 2003 Yoshinori K. Okuji <okuji@enbug.org> |
4 |
|
* Copyright (C) 2003 Marco Gerards <metgerards@student.han.nl>. |
5 |
* |
* |
6 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
7 |
* 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 |
97 |
} |
} |
98 |
|
|
99 |
int |
int |
100 |
|
pupa_iterate_commands (int (*iterate) (pupa_command_t)) |
101 |
|
{ |
102 |
|
pupa_command_t cmd; |
103 |
|
for (cmd = pupa_command_list; cmd; cmd = cmd->next) |
104 |
|
iterate (cmd); |
105 |
|
return 0; |
106 |
|
} |
107 |
|
|
108 |
|
int |
109 |
pupa_command_execute (char *cmdline) |
pupa_command_execute (char *cmdline) |
110 |
{ |
{ |
111 |
pupa_command_t cmd; |
pupa_command_t cmd; |