12 #define UNUSED __attribute__((unused))
13 #define COM(nam, func, args, ...) {.name=nam, .comfunc=func, .hasArgs=args, .sub={__VA_ARGS__}}
19 bool (* const comfunc)(const struct TreeNode*, int, const char**, struct ngadmin*);
21 const struct TreeNode *sub[];
30 extern const struct TreeNode com_quit;
31 extern const struct TreeNode com_login;
32 extern const struct TreeNode com_scan;
33 extern const struct TreeNode com_ports;
34 extern const struct TreeNode com_password;
35 extern const struct TreeNode com_list;
36 extern const struct TreeNode com_list;
37 extern const struct TreeNode com_firmware;
38 extern const struct TreeNode com_name;
42 void displaySwitchTab (const struct swi_attr *sa, int nb);
43 void printErrCode (int err);