r5423: Change function table structure to allow short description
authorRafal Szczesniak <mimir@samba.org>
Wed, 16 Feb 2005 21:50:38 +0000 (21:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:10:44 +0000 (13:10 -0500)
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)

source4/utils/net/net.h

index ba8294c14472f69da6056f5dffc7093dc41a7281..2967063bde71d9e7b536189227e4687716605984 100644 (file)
@@ -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 */