• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

shell.h

Go to the documentation of this file.
00001 /* shell interface */
00002 /* Copyright (C) 2010 Holger Dietze
00003  *
00004  *   This program is free software; you can redistribute it and/or modify
00005  *   it under the terms of the GNU General Public License as published by
00006  *   the Free Software Foundation; either version 2 of the License, or
00007  *   (at your option) version 3.
00008  *
00009  *   This program is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU General Public License along
00015  *   with this program; if not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 #ifndef SHELL_H
00019 #define SHELL_H
00020 
00021 #include "config.h"
00022 
00023 #ifdef HAVE_STDINT_H
00024 #include <stdint.h>
00025 #endif
00026 
00033 #define SHELL_BUFSIZE (80)
00034 
00036 #define ARGP_MAX ((SHELL_BUFSIZE+1)/2+1)
00037 
00040 typedef int (shell_function_t) (const uint8_t argc, const char * const argv[]);
00041 
00048 void shell_recv_char (int c);
00049 
00060 int shell_exec (const char * cmd, const uint8_t argc, const char * argv[]);
00061 
00062 typedef struct gpsflags_s {
00063   uint8_t echo:1;
00064   uint8_t dontuse:1;
00065 } gpsflags_t;
00066 extern gpsflags_t gpsflags[];
00067 
00068 #endif

Generated by  doxygen 1.7.1