]> git.sur5r.net Git - ngadmin/blob - cli/common.h
ea24327ee03ff6434f4e72069f96af7debd0f8f4
[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
21 void displaySwitchTab (const struct swi_attr *sa, int nb);
22 void printErrCode (int err);
23 void printBitrate (int br);
24 int parseBitrate (const char *s);
25
26 // 
27 int trim (char *txt, int start);
28
29 // 
30 int explode (const char *commande, char** tab, int maximum);
31
32
33
34 #endif
35