mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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 48568959a8
)
This commit is contained in:
parent
01af8299ec
commit
16f64ae6d6
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user