Revamp ggo help.
authorAndre Noll <maan@systemlinux.org>
Fri, 12 Apr 2013 11:54:37 +0000 (13:54 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 13 Jun 2013 16:29:03 +0000 (18:29 +0200)
commitaa74a903545250506fd4c29791e6f4aef3a01c41
tree3e4327f802d1cf800eb9a6bab7c83c9719eea0ea
parent9f7a4958d65dd436dff90b37036ba01ce83066d5
Revamp ggo help.

This adds usage and description fields to struct ggo_help and
changes ggo_print_help() to optionally print these.

The boolean detailed_help flag of ggo_print_help() is replaced by a
bitmask which lets the caller specify what to print. Four pre-defined
masks are used to print the normal help, the detailed help, the help
for modules (receivers, filters, writers) and the detailed module help.

The new macro DEFINE_GGO_HELP can be employed to create a struct
ggo_help from a gengetopt structure.
28 files changed:
afh_recv.c
alsa_write.c
amp_filter.c
ao_write.c
audiod.c
compress_filter.c
configure.ac
dccp_recv.c
file_write.c
filter.c
filter.h
filter_common.c
ggo.c
ggo.h
http_recv.c
mp3dec_filter.c
oss_write.c
osx_write.c
play.c
prebuffer_filter.c
recv.c
recv.h
recv_common.c
resample_filter.c
udp_recv.c
write.c
write_common.c
write_common.h