From bd7189f6fbe6648f5e61ca9aa1169ebaf846adde Mon Sep 17 00:00:00 2001 From: Duncan Roe Date: Fri, 13 Aug 2021 14:44:36 +1000 Subject: src: doc: Insert SYNOPSIS sections for man pages In order to work with the post-processing logic in doxygen/Makefile.am, SYNOPSIS sections must be inserted at the end of the module description (text after \defgroup or \addtogroup) (becomes Detailed Description in the man page). Also a few minor updates including rename module uselessfns to do_not_use. Signed-off-by: Duncan Roe Signed-off-by: Pablo Neira Ayuso --- src/extra/udp.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/extra/udp.c') diff --git a/src/extra/udp.c b/src/extra/udp.c index ff91311..ede2196 100644 --- a/src/extra/udp.c +++ b/src/extra/udp.c @@ -28,6 +28,15 @@ /** * \defgroup udp UDP helper functions + * + * \manonly +.SH SYNOPSIS +.nf +\fB +#include +#include +\endmanonly + * * @{ */ @@ -91,6 +100,17 @@ unsigned int nfq_udp_get_payload_len(struct udphdr *udph, struct pkt_buff *pktb) * \defgroup udp_internals Internal UDP functions * * Most user-space programs will never need these. + * + * + * \manonly +.SH SYNOPSIS +.nf +\fB +#include +#include +#include +#include +\endmanonly * * @{ */ -- cgit v1.2.3