6 bool do_name_show (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga) {
8 const struct swi_attr *sa;
11 if ( (sa=ngadmin_getCurrentSwitch(nga))==NULL ) {
12 printf("must be logged\n");
25 bool do_name_set (int nb, const char **com, struct ngadmin *nga) {
28 const struct swi_attr *sa;
32 printf("Usage: name set <value>\n");
36 if ( (sa=ngadmin_getCurrentSwitch(nga))==NULL ) {
37 printf("must be logged\n");
41 i=ngadmin_setName(nga, com[0]);
51 bool do_name_clear (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga) {
54 const struct swi_attr *sa;
57 if ( (sa=ngadmin_getCurrentSwitch(nga))==NULL ) {
58 printf("must be logged\n");
62 i=ngadmin_setName(nga, NULL);