Author: mimir Date: 2005-02-16 21:50:38 +0000 (Wed, 16 Feb 2005) New Revision: 5423
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5423 Log: 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 Modified: branches/SAMBA_4_0/source/utils/net/net.h Changeset: Modified: branches/SAMBA_4_0/source/utils/net/net.h =================================================================== --- branches/SAMBA_4_0/source/utils/net/net.h 2005-02-16 21:40:55 UTC (rev 5422) +++ branches/SAMBA_4_0/source/utils/net/net.h 2005-02-16 21:50:38 UTC (rev 5423) @@ -33,9 +33,9 @@ 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 */