]> git.sur5r.net Git - ngadmin/blob - cli/common.h
d74697766048d7883c89c463fe28b75e1bfca763
[ngadmin] / cli / common.h
1
2 #ifndef DEF_COMMON
3 #define DEF_COMMON
4
5
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <string.h>
9
10 #include <ngadmin.h>
11
12
13 #define UNUSED                          __attribute__((unused))
14
15
16
17 extern int cont;
18
19
20 extern const char *bitrates[], *prio[];
21
22
23 void displaySwitchTab (const struct swi_attr *sa, int nb);
24 void printErrCode (int err);
25 int parseBitrate (const char *s);
26 char parsePrio (const char *s);
27
28
29 // 
30 int trim (char *txt, int start);
31
32 // 
33 int explode (const char *commande, char** tab, int maximum);
34
35
36
37 #endif
38