Skip to content

Commit

Permalink
fix(generators): Add support for eventstruct
Browse files Browse the repository at this point in the history
Newer xcb-proto commits after the 1.12 release require the 'eventstruct'
key in the output dictionary, otherwise the generator crashes.

I don't see a need for xpp to actually support the eventstruct key and
thus it uses a NOP lambda function
  • Loading branch information
patrick96 authored and NBonaparte committed Feb 14, 2018
1 parent d756c87 commit 00165e1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions generators/cpp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3130,15 +3130,16 @@ def cpp_type_classes():
# }

# Must create an "output" dictionary before any xcbgen imports.
output = {'open' : c_open,
'close' : c_close,
'simple' : c_simple, # lambda x, y: None,
'enum' : lambda x, y: None,
'struct' : lambda x, y: None,
'union' : lambda x, y: None,
'request' : c_request,
'event' : cpp_event,
'error' : cpp_error,
output = {'open' : c_open,
'close' : c_close,
'simple' : c_simple, # lambda x, y: None,
'enum' : lambda x, y: None,
'struct' : lambda x, y: None,
'union' : lambda x, y: None,
'request' : c_request,
'event' : cpp_event,
'error' : cpp_error,
'eventstruct' : lambda x, y: None,
}

# Boilerplate below this point
Expand Down

0 comments on commit 00165e1

Please sign in to comment.