[PATCH wayland] scanner: Generate 'since' macros for requests as well

Hardening rdp.effort at gmail.com
Thu Oct 8 00:00:54 PDT 2015


Le 08/10/2015 05:10, Jonas Ådahl a écrit :
> We already generate WL_[INTERFACE]_[REQUEST]_SINCE_VERSION macros for
> events in the server protocol headers. Lets do the same for requests in
> the client protocol headers as well.
> 
> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
> ---
>  src/scanner.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/scanner.c b/src/scanner.c
> index 9b41ae4..2d5a0d8 100644
> --- a/src/scanner.c
> +++ b/src/scanner.c
> @@ -1270,6 +1270,7 @@ emit_header(struct protocol *protocol, enum side side)
>  		} else {
>  			emit_structs(&i->event_list, i, side);
>  			emit_opcodes(&i->request_list, i);
> +			emit_opcode_versions(&i->request_list, i);
>  			emit_stubs(&i->request_list, i);
>  		}
>  
> 
I hit the case this week, this patch is definitely a must-have.

Reviewed-by: David FORT <contact at hardening-consulting.com>

-- 
David FORT
website: http://www.hardening-consulting.com/



More information about the wayland-devel mailing list