1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

net: Add net_display_usage_from_functable()

(This used to be commit de0e15b35ea46cfcdd82f45eb3329c44d7aacb90)
This commit is contained in:
Kai Blin 2008-06-05 23:22:19 +02:00
parent 0f1b3ed5c0
commit 8efc535a4a
2 changed files with 8 additions and 0 deletions

View File

@ -462,6 +462,7 @@ int net_run_function2(struct net_context *c, int argc, const char **argv,
const char *whoami, struct functable2 *table);
int net_run_function3(struct net_context *c, int argc, const char **argv,
const char *whoami, struct functable3 *table);
void net_display_usage_from_functable(struct functable3 *table);
/* The following definitions come from utils/netlookup.c */

View File

@ -622,3 +622,10 @@ int net_run_function3(struct net_context *c, int argc, const char **argv,
return c->display_usage?0:-1;
}
void net_display_usage_from_functable(struct functable3 *table)
{
int i;
for (i=0; table[i].funcname != NULL; i++) {
d_printf("%s\n", table[i].usage);
}
}