summaryrefslogtreecommitdiff
path: root/source4/utils/net
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2005-02-16 21:50:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:44 -0500
commit16f64ae6d6a9ea0ec14ec124c097787ccb320864 (patch)
treeccbc400dd241fd2914a6261a32be917fd53ab6b4 /source4/utils/net
parent01af8299ec7362864922b8f5c25d1d79a23c28c2 (diff)
downloadsamba-16f64ae6d6a9ea0ec14ec124c097787ccb320864.tar.gz
samba-16f64ae6d6a9ea0ec14ec124c097787ccb320864.tar.bz2
samba-16f64ae6d6a9ea0ec14ec124c097787ccb320864.zip
r5423: Change function table structure to allow short description
of command groups. Also give up help function pointer in the structure since it's needed only in leaf nodes of command tree, and leaf nodes decide about help on their own. Usage function is still available on all levels. rafal (This used to be commit 48568959a86ee60c188b84078eb3872b8e185b6c)
Diffstat (limited to 'source4/utils/net')
-rw-r--r--source4/utils/net/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/utils/net/net.h b/source4/utils/net/net.h
index ba8294c144..2967063bde 100644
--- a/source4/utils/net/net.h
+++ b/source4/utils/net/net.h
@@ -33,9 +33,9 @@ struct net_context {
struct net_functable {
const char *name;
+ const char *desc;
int (*fn)(struct net_context *ctx, int argc, const char **argv);
int (*usage)(struct net_context *ctx, int argc, const char **argv);
- int (*help)(struct net_context *ctx, int argc, const char **argv);
};
#endif /* _UTIL_NET_H */