[PATCH wayland v4] scanner: add a new --include-core-only option

Bill Spitzak spitzak at gmail.com
Wed Apr 29 11:15:04 PDT 2015


Attached is the patch done to wayland. Note that no other code had to be 
changed.

This is not the correct patch, the correct patch would either remove or 
invert the switch.
-------------- next part --------------
diff --git a/src/scanner.c b/src/scanner.c
index 75322f7..168d9b5 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1038,9 +1038,9 @@ static const char *
 get_include_name(bool core, enum side side)
 {
 	if (side == SERVER)
-		return core ? "wayland-server-core.h" : "wayland-server.h";
+		return "wayland-server-core.h";
 	else
-		return core ? "wayland-client-core.h" : "wayland-client.h";
+		return "wayland-client-core.h";
 }
 
 static void


More information about the wayland-devel mailing list