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
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 */