[app] change the app api to have an init and entry point

This commit is contained in:
Travis Geiselbrecht
2009-01-24 21:44:52 -08:00
parent 3f14b667d3
commit 668383c506
5 changed files with 34 additions and 28 deletions

View File

@@ -24,14 +24,18 @@
#include <debug.h>
#include <lib/console.h>
static void shell_init(const struct _app_descriptor *app, void *args)
static void shell_init(const struct app_descriptor *app)
{
console_init();
}
static void shell_entry(const struct app_descriptor *app, void *args)
{
console_start();
}
APP_START(shell)
.entry = shell_init,
.flags = APP_FLAG_BOOT_START | APP_FLAG_THREAD,
.init = shell_init,
.entry = shell_entry,
APP_END