]> git.sur5r.net Git - ngadmin/blobdiff - cli/common.h
Let commands handle themselves absence of arguments
[ngadmin] / cli / common.h
index 3d4b5e047622c537994b69074563c751ca2e1476..e50ae1e6e57a557a04a38a6175868155456b6983 100644 (file)
@@ -6,31 +6,33 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <termios.h>
+#include <unistd.h>
 
 #include <ngadmin.h>
 
 
-#define UNUSED                         __attribute__((unused))
+#define UNUSED                 __attribute__((unused))
+#define NORET                  __attribute__((noreturn))
 
 
+extern int main_loop_continue;
+extern struct termios current_term;
 
-extern int cont;
 
-
-extern const char* bitrates[];
+extern const char * const bitrates[], * const prio[];
 
 
 void displaySwitchTab (const struct swi_attr *sa, int nb);
 void printErrCode (int err);
 int parseBitrate (const char *s);
+char parsePrio (const char *s);
+
 
-// 
 int trim (char *txt, int start);
 
-// 
 int explode (const char *commande, char** tab, int maximum);
 
 
-
 #endif