[PATCH wayland] scanner: Correct doxygen group name for *_add_listener

Yong Bakos junk at humanoriented.com
Tue Jul 26 21:09:48 UTC 2016


From: Yong Bakos <ybakos at humanoriented.com>

From: Bill Spitzak <spitzak at gmail.com>

Scanner has been generating the doxygen group label "foo_iface" for all
*_add_listener functions, and the label "iface_foo" everywhere else.

Correct the label generation, so all *_add_listener functions appear correctly
within doxygen output.

See: https://patchwork.freedesktop.org/patch/89806/

Signed-off-by: Yong Bakos <ybakos at humanoriented.com>
---
 src/scanner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/scanner.c b/src/scanner.c
index d501ba7..ffd72ae 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1362,7 +1362,7 @@ emit_structs(struct wl_list *message_list, struct interface *interface, enum sid
 
 	if (side == CLIENT) {
 	    printf("/**\n"
-		   " * @ingroup %s_iface\n"
+		   " * @ingroup iface_%s\n"
 		   " */\n", interface->name);
 	    printf("static inline int\n"
 		   "%s_add_listener(struct %s *%s,\n"
-- 
2.7.2



More information about the wayland-devel mailing list