Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1BkVDm-0005Yr-0W for mharc-grub-devel@gnu.org; Tue, 13 Jul 2004 17:53:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BkVDk-0005YY-Nx for grub-devel@gnu.org; Tue, 13 Jul 2004 17:53:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BkVDj-0005YF-6o for grub-devel@gnu.org; Tue, 13 Jul 2004 17:53:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkVDj-0005YC-11 for grub-devel@gnu.org; Tue, 13 Jul 2004 17:53:51 -0400 Received: from [62.21.237.208] (helo=pc-jeroen) by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.34) id 1BkVBG-0007kC-Iq for grub-devel@gnu.org; Tue, 13 Jul 2004 17:51:18 -0400 Received: from localhost ([127.0.0.1] helo=pc-jeroen.dekkers.cx ident=jeroen) by pc-jeroen with esmtp (Exim 4.32) id 1BkVBA-0002cM-Hl; Tue, 13 Jul 2004 23:51:12 +0200 Date: Tue, 13 Jul 2004 23:51:12 +0200 Message-ID: <87d62z1sq7.wl@pc-jeroen.dekkers.cx> From: Jeroen Dekkers To: The development of GRUB 2 In-Reply-To: <87iscrraqa.fsf@marco.marco-g.com> References: <87n023rgd9.fsf@marco.marco-g.com> <87k6x723my.wl@pc-jeroen.dekkers.cx> <87iscrraqa.fsf@marco.marco-g.com> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: Subject: Re: Linux loader for the PPC X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2004 21:53:53 -0000 At Tue, 13 Jul 2004 21:03:09 +0200, Marco Gerards wrote: > > Jeroen Dekkers writes: > > > At Tue, 13 Jul 2004 19:01:22 +0200, > > Marco Gerards wrote: > >> +static void > >> +grub_rescue_cmd_linux (int argc, char *argv[]) > >> +{ > >> + grub_load_linux (argc, argv); > >> +} > >> + > >> +GRUB_MOD_INIT > >> +{ > >> + grub_rescue_register_command ("linux", grub_rescue_cmd_linux, > >> + "load a linux kernel"); > >> + my_mod = mod; > >> +} > > > > Why don't you just use grub_load_linux as argument to > > grub_rescue_register_command()? > > Because that will make it harder to change the interface of > grub_load_linux afterwards. Why? It's in the same file as the register command. If it gets a different interface, you can update the register call with it to point to some new function that wraps is. Jeroen Dekkers