]> git.sur5r.net Git - ngadmin/blob - cli/com_list.c
3c8eb8c976a9cba2bb403b7e38fa71179bd0d1ad
[ngadmin] / cli / com_list.c
1
2 #include "common.h"
3
4
5
6
7 static bool do_list (const struct TreeNode *tn UNUSED, int nb UNUSED, const char **com UNUSED, struct ngadmin *nga) {
8  
9  int n;
10  const struct swi_attr *sa;
11  
12  
13  sa=ngadmin_getSwitchTab(nga, &n);
14  displaySwitchTab(sa, n);
15  
16  
17  return true;
18  
19 }
20
21
22
23 const struct TreeNode com_list=COM("list", do_list, false, NULL);
24
25
26