Skip to content

Commit

Permalink
cleanup #151
Browse files Browse the repository at this point in the history
  • Loading branch information
double-fault committed Jan 14, 2017
1 parent 702020f commit 59ee6d5
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions include/apps/sh/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,35 @@
#include <stdbool.h>

typedef enum
{
ROOT,
USER
{
ROOT,
USER
}exec_prv;

struct cmd_opt_t
{
char* help;
char* cmd_opt_name;
char* invalid_use_msg;
int(*handler)(char* cmd);
char* help;
char* cmd_opt_name;
char* invalid_use_msg;
int(*handler)(char* cmd);
};

struct cmd_t
{
char* name;
char* usage;
char* help;
char* invalid_use_msg;
exec_prv privilege;
struct cmd_opt_t** cmd_opts;
int(*handler)(char* cmd);
char* name;
char* usage;
char* help;
char* invalid_use_msg;
exec_prv privilege;
struct cmd_opt_t** cmd_opts;
int(*handler)(char* cmd);
};

struct typed_cmd
{
char* value;
char* value;
};



#define CMD_CLEAR_INDEX 0
#define CMD_BONEOS_LOGO_INDEX 1
#define CMD_HELP_INDEX 2
Expand Down

0 comments on commit 59ee6d5

Please sign in to comment.