1 /* 2 * Copyright (c) 2009 Travis Geiselbrecht 3 * 4 * Use of this source code is governed by a MIT-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/MIT 7 */ 8 #include <app.h> 9 #include <lk/debug.h> 10 #include <lib/console.h> 11 shell_entry(const struct app_descriptor * app,void * args)12static void shell_entry(const struct app_descriptor *app, void *args) { 13 console_t *con = console_create(true); 14 if (!con) 15 return; 16 17 console_start(con); 18 19 // TODO: destroy console and free resources 20 } 21 22 APP_START(shell) 23 .entry = shell_entry, 24 APP_END 25 26